Try

public class Try<A> : TryOf<A>

Undocumented

  • Undocumented

    Declaration

    Swift

    public static func success(_ value: A) -> Try<A>
  • Undocumented

    Declaration

    Swift

    public static func failure(_ error: Error) -> Try<A>
  • Undocumented

    Declaration

    Swift

    public static func raise(_ error: Error) -> Try<A>
  • Undocumented

    Declaration

    Swift

    public static func invoke(_ f: () throws -> A) -> Try<A>
  • Undocumented

    Declaration

    Swift

    public static func fix(_ fa: TryOf<A>) -> Try<A>
  • Undocumented

    Declaration

    Swift

    public func fold<B>(_ fe: (Error) -> B, _ fa: (A) throws -> B) -> B
  • Undocumented

    Declaration

    Swift

    public func failed() -> Try<Error>
  • Undocumented

    Declaration

    Swift

    public func getOrElse(_ defaultValue: A) -> A
  • Undocumented

    Declaration

    Swift

    public func recoverWith(_ f: (Error) -> Try<A>) -> Try<A>
  • Undocumented

    Declaration

    Swift

    public func recover(_ f: @escaping (Error) -> A) -> Try<A>
  • Undocumented

    Declaration

    Swift

    public static func traversal() -> Traversal<TryOf<A>, A>
  • Undocumented

    Declaration

    Swift

    public static func each() -> TryEach<A>
  • Undocumented

    See more

    Declaration

    Swift

    public class TryEach<E> : Each
  • Undocumented

    Declaration

    Swift

    public static func pSuccessPrism<B>() -> PPrism<Try<A>, Try<B>, A, B>
  • Undocumented

    Declaration

    Swift

    public static func successPrism() -> Prism<Try<A>, A>
  • Undocumented

    Declaration

    Swift

    public static func failurePrism() -> Prism<Try<A>, Error>
  • Undocumented

    Declaration

    Swift

    public static func toPEither<B>() -> PIso<Try<A>, Try<B>, Either<Error, A>, Either<Error, B>>
  • Undocumented

    Declaration

    Swift

    public static func toEither() -> Iso<Try<A>, Either<Error, A>>
  • Undocumented

    Declaration

    Swift

    public static func toPValidated<B>() -> PIso<Try<A>, Try<B>, Validated<Error, A>, Validated<Error, B>>
  • Undocumented

    Declaration

    Swift

    public static func toValidated() -> Iso<Try<A>, Validated<Error, A>>
  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var debugDescription: String { get }