OptionTPartial

public final class OptionTPartial<F> : Kind<ForOptionT, F>

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

  • Declaration

    Swift

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

    Swift

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

    Swift

    public static func pure<A>(_ a: A) -> Kind<OptionTPartial<F>, A>
  • Declaration

    Swift

    public static func ap<A, B>(_ ff: Kind<OptionTPartial<F>, (A) -> B>, _ fa: Kind<OptionTPartial<F>, A>) -> Kind<OptionTPartial<F>, B>
  • Declaration

    Swift

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

    Swift

    public static func tailRecM<A, B>(_ a: A, _ f: @escaping (A) -> Kind<OptionTPartial<F>, Either<A, B>>) -> Kind<OptionTPartial<F>, B>
  • Declaration

    Swift

    public static func combineK<A>(_ x: Kind<OptionTPartial<F>, A>, _ y: Kind<OptionTPartial<F>, A>) -> Kind<OptionTPartial<F>, A>
  • Declaration

    Swift

    public static func emptyK<A>() -> Kind<OptionTPartial<F>, A>
  • Declaration

    Swift

    public typealias E = F.E
  • Declaration

    Swift

    public static func raiseError<A>(_ e: F.E) -> Kind<OptionTPartial<F>, A>
  • Declaration

    Swift

    public static func handleErrorWith<A>(_ fa: Kind<OptionTPartial<F>, A>, _ f: @escaping (F.E) -> Kind<OptionTPartial<F>, A>) -> Kind<OptionTPartial<F>, A>
  • Declaration

    Swift

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

    Swift

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