Uses of Class
fj.data.State
-
Packages that use State Package Description fj.data Common algebraic data types. -
-
Uses of State in fj.data
Methods in fj.data that return State Modifier and Type Method Description <B> State<S,B>
State. bind(F<A,State<S,B>> f)
Bind the given function across this state.static <S,A>
State<S,A>State. constant(A a)
static <S,A,B>
State<S,B>State. flatMap(State<S,A> ts, F<A,State<S,B>> f)
<B> State<S,B>
State. flatMap(F<A,State<S,B>> f)
Bind the given function across this state.State<S,S>
State. gets()
static <S,A>
State<S,A>State. gets(F<S,A> f)
static <S> State<S,S>
State. init()
<B> State<S,B>
State. map(F<A,B> f)
<B> State<S,B>
State. mapState(F<P2<S,A>,P2<S,B>> f)
static <S> State<S,Unit>
State. modify(F<S,S> f)
static <S> State<S,Unit>
State. put(S s)
static <S,A>
State<S,List<A>>State. sequence(List<State<S,A>> list)
Evaluate each action in the sequence from left to right, and collect the results.private static <S,A>
State<S,A>State. suspended(F<S,Trampoline<P2<S,A>>> runF)
static <S,A,B>
State<S,List<B>>State. traverse(List<A> list, F<A,State<S,B>> f)
Map each element of a structure to an action, evaluate these actions from left to right and collect the results.static <S,A>
State<S,A>State. unit(F<S,P2<S,A>> runF)
static <S> State<S,S>
State. units(F<S,S> f)
State<S,A>
State. withs(F<S,S> f)
Methods in fj.data that return types with arguments of type State Modifier and Type Method Description static <A> IO<State<java.io.BufferedReader,Validation<java.io.IOException,java.lang.String>>>
IOFunctions. readerState()
Methods in fj.data with parameters of type State Modifier and Type Method Description static <S,A,B>
State<S,B>State. flatMap(State<S,A> ts, F<A,State<S,B>> f)
Method parameters in fj.data with type arguments of type State Modifier and Type Method Description <B> State<S,B>
State. bind(F<A,State<S,B>> f)
Bind the given function across this state.static <S,A,B>
State<S,B>State. flatMap(State<S,A> ts, F<A,State<S,B>> f)
<B> State<S,B>
State. flatMap(F<A,State<S,B>> f)
Bind the given function across this state.static <S,A>
State<S,List<A>>State. sequence(List<State<S,A>> list)
Evaluate each action in the sequence from left to right, and collect the results.static <S,A,B>
State<S,List<B>>State. traverse(List<A> list, F<A,State<S,B>> f)
Map each element of a structure to an action, evaluate these actions from left to right and collect the results.
-