Ior

public class Ior<A, B> : IorOf<A, B>

Undocumented

  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public static func both(_ a: A, _ b: B) -> Ior<A, B>
  • Undocumented

    Declaration

    Swift

    public static func fromOptions(_ ma: Option<A>, _ mb: Option<B>) -> Option<Ior<A, B>>
  • Undocumented

    Declaration

    Swift

    public static func fix(_ fa: IorOf<A, B>) -> Ior<A, B>
  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    public var isLeft: Bool { get }
  • Undocumented

    Declaration

    Swift

    public var isRight: Bool { get }
  • Undocumented

    Declaration

    Swift

    public var isBoth: Bool { get }
  • Undocumented

    Declaration

    Swift

    public func bimap<C, D>(_ fa: (A) -> C, _ fb: (B) -> D) -> Ior<C, D>
  • Undocumented

    Declaration

    Swift

    public func mapLeft<C>(_ f: (A) -> C) -> Ior<C, B>
  • Undocumented

    Declaration

    Swift

    public func swap() -> Ior<B, A>
  • Undocumented

    Declaration

    Swift

    public func unwrap() -> Either<Either<A, B>, (A, B)>
  • Undocumented

    Declaration

    Swift

    public func pad() -> (Option<A>, Option<B>)
  • Undocumented

    Declaration

    Swift

    public func toEither() -> Either<A, B>
  • Undocumented

    Declaration

    Swift

    public func toOption() -> Option<B>
  • Undocumented

    Declaration

    Swift

    public func getOrElse(_ defaultValue: B) -> B
  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var debugDescription: String { get }