OptionT

public class OptionT<F, A> : OptionTOf<F, A>

Undocumented

  • Undocumented

    Declaration

    Swift

    public static func fix(_ fa: OptionTOf<F, A>) -> OptionT<F, A>
  • Undocumented

    Declaration

    Swift

    public init(_ value: Kind<F, Option<A>>)
  • Undocumented

    Declaration

    Swift

    public func fold<B>(_ ifEmpty: @escaping () -> B, _ f: @escaping (A) -> B) -> Kind<F, B>
  • Undocumented

    Declaration

    Swift

    public func cata<B>(_ ifEmpty: @escaping () -> B, _ f: @escaping (A) -> B) -> Kind<F, B>
  • Undocumented

    Declaration

    Swift

    public func liftF<B>(_ fb: Kind<F, B>) -> OptionT<F, B>
  • Undocumented

    Declaration

    Swift

    public func getOrElse(_ defaultValue: A) -> Kind<F, A>
  • Undocumented

    Declaration

    Swift

    public var isDefined: Kind<F, Bool> { get }
  • Undocumented

    Declaration

    Swift

    public func transform<B>(_ f: @escaping (Option<A>) -> Option<B>) -> OptionT<F, B>
  • Undocumented

    Declaration

    Swift

    public func subflatMap<B>(_ f: @escaping (A) -> Option<B>) -> OptionT<F, B>
  • Undocumented

    Declaration

    Swift

    public static func none() -> OptionT<F, A>
  • Undocumented

    Declaration

    Swift

    public static func some(_ a: A) -> OptionT<F, A>
  • Undocumented

    Declaration

    Swift

    public static func fromOption(_ option: Option<A>) -> OptionT<F, A>
  • Undocumented

    Declaration

    Swift

    public func orElse(_ defaultValue: OptionT<F, A>) -> OptionT<F, A>
  • Undocumented

    Declaration

    Swift

    public func orElseF(_ defaultValue: Kind<F, Option<A>>) -> OptionT<F, A>
  • Undocumented

    Declaration

    Swift

    public func semiflatMap<B>(_ f: @escaping (A) -> Kind<F, B>) -> OptionT<F, B>
  • Undocumented

    Declaration

    Swift

    public func getOrElseF(_ defaultValue: Kind<F, A>) -> Kind<F, A>