Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

new

🌌mutate.new

create a new mutable value with the given initial value and update the
'mutate' effect in the current environment

returns `asString` of the current value

redefines Object.asString:

creates a copy of the mutable field

infix operator for put, OCaml/F#-style syntax

update mutable field with new value

update mutable field using a function of the old value