(ordered-map)(ordered-map coll)(ordered-map k v & kvs)Return a map with the given keys and values, whose entries are sorted in the order that keys are added. assoc'ing a key that is already in an ordered map leaves its order unchanged. dissoc'ing a key and then later assoc'ing it puts it at the end, as if it were assoc'ed for the first time.
Clojure supports transient ordered maps, ClojureScript does not.
Return a map with the given keys and values, whose entries are sorted in the order that keys are added. assoc'ing a key that is already in an ordered map leaves its order unchanged. dissoc'ing a key and then later assoc'ing it puts it at the end, as if it were assoc'ed for the first time. Clojure supports `transient` ordered maps, ClojureScript does not.
(ordered-map? x)Returns true if x is a flatland ordered map. Does not include transient variant.
Returns `true` if `x` is a flatland ordered map. Does not include `transient` variant.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |