Want this course?
When you need to modify an immutable value, you actually make a modified copy. If you make a lot of changes, you make a copy for each change. If you're just going to throw those copies away, that is a major waste. Transients let you create a local mutable copy of a collection, modify it, and then freeze it. When used with large-batch modifications, it can significantly improve performance.
Code is available: lispcast/clojure-collections
You can checkout the code in your local repo with this command:
$CMD git clone https://github.com/lispcast/clojure-collections.git $CMD cd clojure-collections