T
- Current input type of FunctionR
- Current return type of Functionpublic interface Reader<T,R> extends java.util.function.Function<T,R>, Functor<R>
Modifier and Type | Method and Description |
---|---|
default AnyM<R> |
anyM() |
default <R1> Reader<T,R1> |
flatMap(java.util.function.Function<? super R,? extends Reader<T,R1>> f) |
default <R1> Reader<T,R1> |
map(java.util.function.Function<? super R,? extends R1> f2)
Transform this functor using the supplied transformation function
|
cast, patternMatch, peek, trampoline
default <R1> Reader<T,R1> map(java.util.function.Function<? super R,? extends R1> f2)
Functor
of(1,2,3).map(i->i*2)
//[2,4,6]
default <R1> Reader<T,R1> flatMap(java.util.function.Function<? super R,? extends Reader<T,R1>> f)