sorted-map

functionsince v0.0-1211 clojure.core/sorted-mapEdit
(sorted-map & keyvals)

Details:

Returns a new sorted map with supplied mappings.

keyvals must be an even number of forms.


See Also:


Source docstring:
keyval => key val
Returns a new sorted map with supplied mappings.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn sorted-map
  ([& keyvals]
     (loop [in (seq keyvals) out (.-EMPTY PersistentTreeMap)]
       (if in
         (recur (nnext in) (assoc out (first in) (second in)))
         out))))