(into-ordered-set elements)Create a new ordered set from elements.
Used for registering runtime tag parsers for ClojureScript, see docs.
Create a new ordered set from `elements`. Used for registering runtime tag parsers for ClojureScript, see [docs](/doc/01-user-guide.adoc#cljs).
(ordered-set)(ordered-set & xs)Return a set with the given xs, whose elements 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.
NOTE: The 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.
Clojure supports transient ordered sets, ClojureScript does not.
Return a set with the given `xs`, whose elements 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. *NOTE*: The `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. Clojure supports `transient` ordered sets, ClojureScript does not.
(ordered-set? x)Returns true if x is a flatland ordered set. Does not include transient variant.
Returns `true` if `x` is a flatland ordered set. 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 |