File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 3358
3358
3359
3359
; ;;;;;;;;;;;;;;;;;;;; editable collections ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3360
3360
(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."
3362
3370
{:added " 1.1"
3363
3371
:static true }
3364
3372
[^clojure.lang.IEditableCollection coll]
You can’t perform that action at this time.
0 commit comments