either
library
Functions
-
bimap<L1, L2, R1, R2>({required L2 left(L1), required R2 right(R1)})
→ Either<L2, R2> Function(Either<L1, R1> either)
-
-
doEither<L, R>(R f(A <A>(Either<L, A>)))
→ Either<L, R>
-
-
flatMap<L, R1, R2>(Either<L, R2> f(R1))
→ Either<L, R2> Function(Either<L, R1> either)
-
-
map<R1, R2>(R2 right(R1))
→ Either<L, R2> Function<L>(Either<L, R1> either)
-
-
mapLeft<L1, L2>(L2 left(L1))
→ Either<L2, R> Function<R>(Either<L1, R> either)
-
-
match<A, L, R>({required A left(L), required A right(R)})
→ A Function(Either<L, R> either)
-