Lock-free doubly-linked deque with eager folding.
Cross-platform macros for deque operations. On the JVM, uses Java implementation with VarHandle atomics. On ClojureScript, uses a single-threaded implementation with mutable fields.
Lock-free doubly-linked deque with eager folding. Cross-platform macros for deque operations. On the JVM, uses Java implementation with VarHandle atomics. On ClojureScript, uses a single-threaded implementation with mutable fields.
(add deque link)Add a link to the tail of the deque.
Returns true if the link was added, false if it was already in a deque.
Add a link to the tail of the deque. Returns true if the link was added, false if it was already in a deque.
(addFirst deque link)Add a link to the head of the deque.
Returns true if the link was added, false if it was already in a deque.
Add a link to the head of the deque. Returns true if the link was added, false if it was already in a deque.
(forEach [sym deque] & body)Iterate over all links in the deque.
Iterate over all links in the deque.
(isEmpty deque)Check if the deque is empty.
Check if the deque is empty.
(iterator deque)Get an iterator over the deque.
Get an iterator over the deque.
(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.
(poll deque)Remove and return the first link from the deque, or nil if empty.
Remove and return the first link from the deque, or nil if empty.
(pollEnd deque)Remove and return the last link from the deque, or nil if empty.
Remove and return the last link from the deque, or nil if empty.
(remove deque link)Remove a link from the deque.
Returns true if this call initiated the removal, false if already removed or not in this deque.
Remove a link from the deque. Returns true if this call initiated the removal, false if already removed or not in this deque.
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 |