Concurrent set backed by ConcurrentHashMap (JVM) or js/Set (CLJS).
Cross-platform macros for set operations.
Concurrent set backed by ConcurrentHashMap (JVM) or js/Set (CLJS). Cross-platform macros for set operations.
(add set elem)Add an element to the set.
Returns true if the element was added, false if already present.
Add an element to the set. Returns true if the element was added, false if already present.
(contains? set elem)Check if the set contains an element.
Check if the set contains an element.
(forEach [sym set] & body)Iterate over all elements in the set.
Iterate over all elements in the set.
(iterator set)Get an iterator over the set.
Get an iterator over the set.
(iteratorHasNext it)Check if the iterator has more elements.
Check if the iterator has more elements.
(iteratorNext it)Get the next element from the iterator.
Get the next element from the iterator.
(remove set elem)Remove an element from the set.
Returns true if the element was removed, false if not present.
Remove an element from the set. Returns true if the element was removed, false if not present.
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 |