(conj!)
(conj! tcoll)
(conj! tcoll val)
(conj! tcoll val & vals)
Adds val to the transient collection, and return tcoll. The 'addition'
may happen at different 'places' depending on the concrete type.
Source
(defn
conj!
"Adds val to the transient collection, and return tcoll. The 'addition'\n may happen at different 'places' depending on the concrete type."
([] (transient []))
([tcoll] tcoll)
([tcoll val] (-conj! tcoll val))
([tcoll val & vals]
(let
[ntcoll (-conj! tcoll val)]
(if vals (recur ntcoll (first vals) (next vals)) ntcoll))))