Class State<S,A>
java.lang.Object
fj.data.State<S,A>
-
Method Summary
Modifier and TypeMethodDescriptionBind the given function across this state.static <S,A> State <S, A> constant(A a) static <S,A, B> State <S, B> Bind the given function across this state.gets()static <S,A> State <S, A> static <S> State<S, S> init()put(S s) Evaluate each action in the sequence from left to right, and collect the results.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> static <S> State<S, S>
-
Method Details
-
unit
-
init
-
units
-
constant
-
gets
-
put
-
modify
-
flatMap
-
sequence
-
traverse
-
run
-
eval
-
exec
-
gets
-
map
-
mapState
-
withs
-
bind
-
flatMap
-