(rontolisp) docs
← State

ref-set

(ref-set r v)

Replaces the ref's value inside dosync, through the ref's validator, and answers the value. Works as a function value, like reset!.