public class Cokleisli<T,R,W extends WitnessType<W>> extends java.lang.Object implements Fn1<AnyM<W,T>,R>, Transformable<R>
Fn1.µ, Fn1.FunctionalOperations<T1,R>
Constructor and Description |
---|
Cokleisli() |
Modifier and Type | Method and Description |
---|---|
R |
apply(AnyM<W,T> a)
Apply this function to the arguments.
|
static <T,R,W extends WitnessType<W>> |
cokleisli(java.util.function.Function<? super AnyM<W,T>,? extends R> fn) |
<R2> Cokleisli<T,org.jooq.lambda.tuple.Tuple2<R,R2>,W> |
fanout(Cokleisli<T,R2,W> f2) |
<R1> Cokleisli<T,R1,W> |
map(java.util.function.Function<? super R,? extends R1> mapper)
Transform this functor using the supplied transformation function
|
<R2> Cokleisli<T,org.jooq.lambda.tuple.Tuple2<R,R2>,W> |
product(Cokleisli<T,R2,W> f2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, andThen, bind, compose, fanIn, firstFn, functionOps, leftFn, lift, lift, liftF, liftOpt, liftTry, memoize, memoize, memoizeAsync, memoizeAsync, merge, narrow, product, product, product, reader, rightFn, secondFn, λ, λv
apply, applyPartially, applyPartially, curry, curry, from, toFunction
cast, peek, retry, retry, trampoline
public R apply(AnyM<W,T> a)
org.jooq.lambda.function.Function1
public <R1> Cokleisli<T,R1,W> map(java.util.function.Function<? super R,? extends R1> mapper)
Transformable
of(1,2,3).map(i->i*2)
//[2,4,6]
map
in interface Transformable<R>
mapper
- Transformation functionpublic static <T,R,W extends WitnessType<W>> Cokleisli<T,R,W> cokleisli(java.util.function.Function<? super AnyM<W,T>,? extends R> fn)