Coproduct2

public final class Coproduct2<A, B> : Coproduct2Of<A, B>

Undocumented

  • Undocumented

    Declaration

    Swift

    public static func first(_ a: A) -> Coproduct2<A, B>
  • Undocumented

    Declaration

    Swift

    public static func second(_ b: B) -> Coproduct2<A, B>
  • Undocumented

    Declaration

    Swift

    public func fold<Z>(_ fa: (A) -> Z,
                        _ fb: (B) -> Z) -> Z
  • Undocumented

    Declaration

    Swift

    public var first: Option<A> { get }
  • Undocumented

    Declaration

    Swift

    public var second: Option<B> { get }