CoproductPartial

public final class CoproductPartial<F, G> : Kind2<ForCoproduct, F, G>

Partial application of the Coproduct type constructor, omitting the last parameter.

  • Declaration

    Swift

    public static func eq<A>(_ lhs: Kind<CoproductPartial<F, G>, A>, _ rhs: Kind<CoproductPartial<F, G>, A>) -> Bool where A : Equatable
  • Declaration

    Swift

    public static func map<A, B>(_ fa: Kind<CoproductPartial<F, G>, A>, _ f: @escaping (A) -> B) -> Kind<CoproductPartial<F, G>, B>
  • Declaration

    Swift

    public static func coflatMap<A, B>(_ fa: Kind<CoproductPartial<F, G>, A>, _ f: @escaping (Kind<CoproductPartial<F, G>, A>) -> B) -> Kind<CoproductPartial<F, G>, B>
  • Declaration

    Swift

    public static func extract<A>(_ fa: Kind<CoproductPartial<F, G>, A>) -> A
  • Declaration

    Swift

    public static func foldLeft<A, B>(_ fa: Kind<CoproductPartial<F, G>, A>, _ b: B, _ f: @escaping (B, A) -> B) -> B
  • Declaration

    Swift

    public static func foldRight<A, B>(_ fa: Kind<CoproductPartial<F, G>, A>, _ b: Eval<B>, _ f: @escaping (A, Eval<B>) -> Eval<B>) -> Eval<B>