PersistentHashSet.createAsIfByAssoc

functionsince v1.9.456Edit
(PersistentHashSet.createAsIfByAssoc items)

Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(set! (.-createAsIfByAssoc PersistentHashSet)
      (fn [items]
        (let [len (alength items)
              t (-as-transient (.-EMPTY PersistentHashSet))]
          (dotimes [i len] (-conj! t (aget items i)))
          (-persistent! t))))