This is in essence a mutable borrow - by looking at Rust's borrow checker, one can see the complexities of the concept.
Clojure has transients—a similar idea I believe. Basically bounded mutation.
Clojure has transients—a similar idea I believe. Basically bounded mutation.