ordered-set
function
flatland.ordered.set/ordered-set
(ordered-set [] [& xs])Return a set with the given items, whose items are sorted in the
order that they are added. conj'ing an item that was already in the
set leaves its order unchanged. disj'ing an item and then later
conj'ing it puts it at the end, as if it were being added for the
first time. Supports transient.
Note that clojure.set functions like union, intersection, and
difference can change the order of their input sets for efficiency
purposes, so may not return the order you expect given ordered sets
as input.
Examples
No examples yet. Be the first to add one!