public class Cokleisli<W,T,R> extends java.lang.Object implements Fn1<Higher<W,T>,R>, Transformable<R>
Fn1.FunctionalOperations<T1,R>
Constructor and Description |
---|
Cokleisli() |
Modifier and Type | Method and Description |
---|---|
R |
apply(Higher<W,T> a) |
static <W,T,R> Cokleisli<W,T,R> |
cokleisli(java.util.function.Function<? super Higher<W,T>,? extends R> fn) |
<R2> Cokleisli<W,T,org.jooq.lambda.tuple.Tuple2<R,R2>> |
fanout(Cokleisli<W,T,R2> f2) |
<R1> Cokleisli<W,T,R1> |
map(java.util.function.Function<? super R,? extends R1> mapper)
Transform this functor using the supplied transformation function
|
static <W,T,R> Cokleisli<W,T,R> |
of(java.util.function.Function<? super Higher<W,T>,? extends R> fn) |
<R2> Cokleisli<W,T,org.jooq.lambda.tuple.Tuple2<R,R2>> |
product(Cokleisli<W,T,R2> f2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
after, always, andThen, andThen, applyLazy, before, bind, compose, fanIn, firstFn, functionOps, later, leftFn, lift, lift, liftAnyM, liftF, liftNT, liftOpt, liftTry, memoize, memoize, memoizeAsync, memoizeAsync, merge, narrow, now, product, product, product, reader, rightFn, secondFn, λ, λv
cast, peek, retry, retry, trampoline
public <R1> Cokleisli<W,T,R1> 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 <W,T,R> Cokleisli<W,T,R> cokleisli(java.util.function.Function<? super Higher<W,T>,? extends R> fn)