Product
public struct Product<Value> : MonoidView where Value : Multiplicative
extension Product: Multiplicative
Multiplicative monoidal view of a Multiplicative-conforming type.
-
Declaration
Swift
public static var identity: Product { get }Return Value
The multiplicative identity wrapped in a
MultiplicativeMonoid.
-
Declaration
Swift
public static func <> (lhs: Product, rhs: Product) -> ProductReturn Value
The composition of the two given values.
-
Value wrapped by
MultiplicativeMonoid.Declaration
Swift
public let value: Value
-
Creates a
MultiplicativeMonoidwith the givenvalue.Declaration
Swift
public init(_ value: Value)
-
Declaration
Swift
public static var one: Product<Value> { get }Return Value
The wrapped-up
onetype property of the wrapped type. -
Declaration
Swift
public static func * (lhs: Product<Value>, rhs: Product<Value>) -> Product<Value>Return Value
The wrapped-up product of the two given values.
View on GitHub
Install in Dash
Product Structure Reference