Package fj.data
Class Reader<A,B>
- java.lang.Object
-
- fj.data.Reader<A,B>
-
public class Reader<A,B> extends java.lang.Object
The Reader monad (also called the function monad, so equivalent to the idea of F).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <C> Reader<A,C>
andThen(F<B,C> f)
<C> Reader<A,C>
bind(F<B,Reader<A,C>> f)
static <A,B>
Reader<A,B>constant(B b)
B
f(A a)
<C> Reader<A,C>
flatMap(F<B,Reader<A,C>> f)
F<A,B>
getFunction()
<C> Reader<A,C>
map(F<B,C> f)
static <A,B>
Reader<A,B>unit(F<A,B> f)
-
-
-
Method Detail
-
constant
public static <A,B> Reader<A,B> constant(B b)
-
-