function | since v0.0-1211 | clojure.core/sorted-set-by | Edit |
(sorted-set-by comparator & keys)
Returns a new sorted set with supplied keys
, using the supplied comparator
.
Returns a new sorted set with supplied keys, using the supplied comparator.
(defn sorted-set-by
([comparator & keys]
(reduce -conj
(PersistentTreeSet. nil (sorted-map-by comparator) 0)
keys)))