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

sorted-map

clojure.core

  • (sorted-map & keyvals)
keyval => key val
Returns a new sorted map with supplied mappings.

1 Example top

  • user=> (sorted-map :z 1, :b 2, :a 3)
    {:a 3, :b 2, :z 1}
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:336 top

(defn sorted-map
  "keyval => key val
  Returns a new sorted map with supplied mappings."
  {:added "1.0"}
  ([& keyvals]
   (clojure.lang.PersistentTreeMap/create keyvals)))
Vars in clojure.core/sorted-map: defn

Comments top

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