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

instate

effect.type.instate

R 
type
,
e effect.this.type,
)
 => 
R
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

Arguments

e
 effect.this.type
the effect value to instate
the code to execute with `e` instated.
the lazy default result to use if effect aborts
0.099dev (GIT hash a35e75388cc5c7a861f5c2a3f42d121e3aab582a)
last changed: 2026-11-03