SwiftenumPreviewsFoundationOS

enum PreviewsFoundationOS.Either

Members 13

  1. casecase left(A)
  2. casecase right(B)
  3. funcanalyze<A>(left: (A) -> A1, right: (B) -> A1) -> A1
  4. funcflatMapLeft<A>((A) -> PreviewsFoundationOS.Either<A1, B>) -> PreviewsFoundationOS.Either<A1, B>
  5. funcflatMapRight<A>((B) -> PreviewsFoundationOS.Either<A, A1>) -> PreviewsFoundationOS.Either<A, A1>
  6. funcflattenedLeft<A where A == PreviewsFoundationOS.Either<A1, B>>(type: A1.Type) -> PreviewsFoundationOS.Either<A1, B>
  7. funcflattenedRight<A where B == PreviewsFoundationOS.Either<A, A1>>(type: A1.Type) -> PreviewsFoundationOS.Either<A, A1>
  8. funcmapLeft<A>((A) -> A1) -> PreviewsFoundationOS.Either<A1, B>
  9. funcmapRight<A>((B) -> A1) -> PreviewsFoundationOS.Either<A, A1>
  10. initPreviewsFoundationOS.Either< where B == Error>.init(left: Result<A, Error>) -> PreviewsFoundationOS.Either<A, Error>
  11. initPreviewsFoundationOS.Either< where A == Error>.init(right: Result<B, Error>) -> PreviewsFoundationOS.Either<Error, B>
  12. varvar discriminant: PreviewsFoundationOS.Either<A, B>.Discriminant { get }
  13. varvar value: A { get }
enum Either<A, B> {
    enum Discriminant {
        case left
        case right

        var description: Swift.String {
            get
        }
    }
    case left(A)
    case right(B)

    var discriminant: PreviewsFoundationOS.Either<A, B>.Discriminant {
        get
    }

    func flatMapLeft<A1>(_: (_: A) -> PreviewsFoundationOS.Either<A1, B>) -> PreviewsFoundationOS.Either<A1, B>
    func flatMapRight<A1>(_: (_: B) -> PreviewsFoundationOS.Either<A, A1>) -> PreviewsFoundationOS.Either<A, A1>
    func flattenedLeft<A1>(type: A1.Type) -> PreviewsFoundationOS.Either<A1, B> where A == PreviewsFoundationOS.Either<A1, B>
    func flattenedRight<A1>(type: A1.Type) -> PreviewsFoundationOS.Either<A, A1> where B == PreviewsFoundationOS.Either<A, A1>
    func analyze<A1>(left: (_: A) -> A1, right: (_: B) -> A1) -> A1
    func mapLeft<A1>(_: (_: A) -> A1) -> PreviewsFoundationOS.Either<A1, B>
    func mapRight<A1>(_: (_: B) -> A1) -> PreviewsFoundationOS.Either<A, A1>
}