You're viewing version 1.2.0 of sorted-set. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

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:350 top

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

Comments top

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