public class Reader<A,B>
extends Object
The Reader monad (also called the function monad, so equivalent to the idea of F).
-
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
function
private final F<A,B> function
-
-
Method Details
-
getFunction
public final F<A,B> getFunction()
-
unit
public static <A,
B> Reader<A,B> unit(F<A,B> f)
-
constant
public static <A,
B> Reader<A,B> constant(B b)
-
-
-
andThen
public final <C> Reader<A,C> andThen(F<B,C> f)
-
-