Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
»

state

state

(S 
type
, R 
type
, initial_value S, r Function R)
 => 
R
[Contains abstract features]
install new state monad for type S and run r within that state monad

return result of r.

Type Parameters

0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)