sorted-set

clojure.core

  • (sorted-set & keys)
Returns a new sorted set with supplied keys.

1 Example top

  • user=> (sorted-set 3 2 1)
    #{1 2 3}
    user=> (sorted-set 3 2 1 1)
    #{1 2 3}
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:381 top

(defn sorted-set
  "Returns a new sorted set with supplied keys."
  {:added "1.0"
   :static true}
  ([& keys]
   (clojure.lang.PersistentTreeSet/create keys)))
Vars in clojure.core/sorted-set:
Used in 0 other vars

Comments top

No comments for sorted-set. Log in to add a comment.