Liking cljdoc? Tell your friends :D

flatland.ordered.set


into-ordered-setclj/s

(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).
source (clj)source (cljs)raw docstring

ordered-setclj/s

(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.
source (clj)source (cljs)raw docstring

ordered-set?clj/s

(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.
source (clj)source (cljs)raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close