function | since v1.9.456 | Edit |
(PersistentHashSet.createAsIfByAssoc items)
(set! (.-createAsIfByAssoc PersistentHashSet)
(fn [items]
(let [len (alength items)
t (-as-transient (.-EMPTY PersistentHashSet))]
(dotimes [i len] (-conj! t (aget items i)))
(-persistent! t))))