SwiftenumPreviewsFoundationOS
enum PreviewsFoundationOS.Either
Members 13
- case
case left(A) - case
case right(B) - func
analyze<A>(left: (A) -> A1, right: (B) -> A1) -> A1 - func
flatMapLeft<A>((A) -> PreviewsFoundationOS.Either<A1, B>) -> PreviewsFoundationOS.Either<A1, B> - func
flatMapRight<A>((B) -> PreviewsFoundationOS.Either<A, A1>) -> PreviewsFoundationOS.Either<A, A1> - func
flattenedLeft<A where A == PreviewsFoundationOS.Either<A1, B>>(type: A1.Type) -> PreviewsFoundationOS.Either<A1, B> - func
flattenedRight<A where B == PreviewsFoundationOS.Either<A, A1>>(type: A1.Type) -> PreviewsFoundationOS.Either<A, A1> - func
mapLeft<A>((A) -> A1) -> PreviewsFoundationOS.Either<A1, B> - func
mapRight<A>((B) -> A1) -> PreviewsFoundationOS.Either<A, A1> - init
PreviewsFoundationOS.Either< where B == Error>.init(left: Result<A, Error>) -> PreviewsFoundationOS.Either<A, Error> - init
PreviewsFoundationOS.Either< where A == Error>.init(right: Result<B, Error>) -> PreviewsFoundationOS.Either<Error, B> - var
var discriminant: PreviewsFoundationOS.Either<A, B>.Discriminant { get } - var
var value: A { get }
Header
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> }