StateResult Class

Convenience methods for returning from a State<S,A> computation

DECLARATION
public static class StateResult
NAMESPACE
LanguageExt

Methods

Fail<S, A>()
DECLARATION
public static ValueTuple<A, S, bool> Fail<S, A>()
RETURNS
ValueTuple<A, S, bool>
Fail<S>()
DECLARATION
public static ValueTuple<Unit, S, bool> Fail<S>()
RETURNS
ValueTuple<Unit, S, bool>
Return<S, A>(A, S)
PARAMETERS
value
A
state
S
DECLARATION
public static ValueTuple<A, S, bool> Return<S, A>(A value, S state)
RETURNS
ValueTuple<A, S, bool>
Return<S>(S)
PARAMETERS
state
S
DECLARATION
public static ValueTuple<Unit, S, bool> Return<S>(S state)
RETURNS
ValueTuple<Unit, S, bool>
ToState<S, A>(ValueTuple<A, S>)
PARAMETERS
self
ValueTuple<A, S>
DECLARATION
public static ValueTuple<A, S, bool> ToState<S, A>(this ValueTuple<A, S> self)
RETURNS
ValueTuple<A, S, bool>