Computation type: Computations which maintain state.
Binding strategy: Threads a state parameter through the sequence of bound functions so that the same state value is never used twice, giving the illusion of in-place update.
Useful for: Building computations from sequences of operations that require a shared state.
TheStatic member | Description |
![]() ![]() ![]() ![]() ![]() ![]() Lifts a function into a State. Same as map. To be used in Applicative Style expressions, combined with <*>
|
Union case | Description |
Full Usage:
State 's -> 't * 's
Parameters:
's -> 't * 's
|
|
Static member | Description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|