HackerTrans
トップ新着トレンドコメント過去質問紹介求人

McWobbleston

no profile record

コメント

McWobbleston
·7 年前·議論
Usually when working with immutable data you don't need to copy it around, you can just pass it around via reference, and the data structure will support cheap "updates". You can see this in F# and Clojure where immutable maps are supported by tree structures, and operations like add/remove return a new reference without touching the original while being reasonably performant.