Skip to content

clojure.core/sorted-map

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 8 Runnable: 5
([& keyvals])

keyval => key val Returns a new sorted map with supplied mappings. If any keys are equal, they are handled as if by repeated uses of assoc.

Examples

by gstamp on
by phreed on
by chrismurrph on
by fasiha on . May have evaluation errors.
by ertugrulcetin on
by dupuchba on . May have evaluation errors.
by CapableWeb on . May have evaluation errors.
by hoodr on

Note by huahaiy

If transient operations are needed for sorted-map, use data.avl instead of this built-in one.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.