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

instate

effect.type.instate

type.instate(R:Any,e effect.this,code Function R,def Unary R effect.this) => R[src]
execute 'code' in a context where the effect instance `e` has been
installed for effect type `effect.this`.

In case `f` returns normally, this will return `f`'s result.

In case `f` aborts this effect, return `def()`.

Type Parameters

R:Any[src]

Arguments

e effect.this[src]
the effect value to instate
code Function R[src]
the code to execute with `e` instated.
def Unary R effect.this[src]
the lazy default result to use if effect aborts
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
last changed: 2026-11-23