Monad implementation which wraps ctx.
Passing context type.
Readonly addMBinds a new value wrapped by the monad.
The new property key for context
The wrapped value to bind.
A new CatT containing the value at the key.
Readonly addMWithReadonly addAppends a new value calculated from ctx by fn.
The new property key for context
The calculation.
A new CatT containing the value at the key.
Readonly ctxContained context. Altering an interior value must be abstained, or may occurs unsound behaviors.
Readonly finishReadonly finishMReadonly loopRuns a looping computation while it returns Continue<S>.
An initial state.
A computation to run.
A new CatT with modified environment.
Readonly monadThe Monad instance for M.
Readonly runReadonly runReadonly whenReadonly whileGenerated using TypeDoc
Contains a
ctxand can be transformed into another one by some methods.