Fuzion Logo
fuzion-lang.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:

creates a copy of the mutable field
infix operator for put, OCaml/F#-style syntax
§put(to T)
 => 
unit
:
Any 
update mutable field with new value
update mutable field using a function of the old value