fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

state

state

state(S:Any,R:Any,initial_value S,r Function R) => R[src]
install new state monad for type S and run r within that state monad

return result of r.

Type Parameters

S:Any[src]
R:Any[src]

Arguments

initial_value S[src]
r Function R[src]
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
last changed: 2026-11-23