arrow-core / arrow.core.extensions.either.functor / arrow.Kind

Extensions for arrow.Kind

fproduct Applies f to an A inside F and returns the F structure with a tuple of the A value and the computed B value as result of applying ffun <L, A, B> Kind<Kind<ForEither, L>, A>.~~fproduct~~(arg1: (A) -> B): Either<L, Tuple2<A, B>>
imap fun <L, A, B> Kind<Kind<ForEither, L>, A>.~~imap~~(arg1: (A) -> B, arg2: (B) -> A): Either<L, B>
map Transform the F wrapped value A into B preserving the F structure Kind<F, A> -> Kind<F, B>fun <L, A, B> Kind<Kind<ForEither, L>, A>.~~map~~(arg1: (A) -> B): Either<L, B>
mapConst Replaces A inside F with B resulting in a Kind<F, B>fun <L, A, B> Kind<Kind<ForEither, L>, A>.~~mapConst~~(arg1: B): Either<L, B>
tupleLeft Pairs B with A returning a Kind<F, Tuple2<B, A>>fun <L, A, B> Kind<Kind<ForEither, L>, A>.~~tupleLeft~~(arg1: B): Either<L, Tuple2<B, A>>
tupleRight Pairs A with B returning a Kind<F, Tuple2<A, B>>fun <L, A, B> Kind<Kind<ForEither, L>, A>.~~tupleRight~~(arg1: B): Either<L, Tuple2<A, B>>
void fun <L, A> Kind<Kind<ForEither, L>, A>.~~void~~(): Either<L, Unit>
widen Given A is a sub type of B, re-type this value from Kind<F, A> to Kind<F, B>fun <L, B, A : B> Kind<Kind<ForEither, L>, A>.~~widen~~(): Either<L, B>

Do you like Arrow?

Arrow Org
<