File tree Expand file tree Collapse file tree
Clojure/Clojure.Source/clojure Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33583358
33593359; ;;;;;;;;;;;;;;;;;;;; editable collections ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
33603360(defn transient
3361- " Returns a new, transient version of the collection, in constant time."
3361+ " Returns a new, transient version of the collection, in constant time.
3362+
3363+ Transients support a parallel set of 'changing' operations, with similar names
3364+ followed by ! - assoc!, conj! etc. These do the same things as their persistent
3365+ counterparts except the return values are themselves transient.
3366+
3367+ Note in particular that transients are not designed to be bashed in-place. You
3368+ must capture and use the return value in the next call. In this way, they support
3369+ the same code structure as the functional persistent code they replace."
33623370 {:added " 1.1"
33633371 :static true }
33643372 [^clojure.lang.IEditableCollection coll]
You can’t perform that action at this time.
0 commit comments