1.3.0 permalink 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}
    
    user=> (into (sorted-map) {:b 2 :a 1})
    {:a 1, :b 2}
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:365 top

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

Comments top

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