Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
State.SSourceSignatures of read effects.
include Paramval get : unit -> stateget () reads the current state.
val set : state -> unitset x makes x the new state.
modify f applies f to the current state and then set the result as the new state.
val run : init:state -> (unit -> 'a) -> 'arun t runs the thunk t which may perform state effects.