Skip to main content

ordered-map

function

flatland.ordered.map/ordered-map

(ordered-map [] [coll] [k v & more])
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. Supports transient.

No examples yet. Be the first to add one!