Liking cljdoc? Tell your friends :D

alda.queue


check-queueclj

(check-queue q pred)

Returns true if there is at least one item in the queue that satisfies the predicate.

Returns true if there is at least one item in the queue that satisfies the
predicate.
sourceraw docstring

pop-queueclj

(pop-queue q)

Pops off the first item in the queue and returns it.

Pops off the first item in the queue and returns it.
sourceraw docstring

push-queueclj

(push-queue q x)
source

queueclj

(queue)
(queue init)

A janky custom data structure that acts like a queue and is a ref.

It's really just a vector wrapped in a ref.

Items are popped from the left and pushed onto the right.

A janky custom data structure that acts like a queue and is a ref.

It's really just a vector wrapped in a ref.

Items are popped from the left and pushed onto the right.
sourceraw docstring

re-queueclj

(re-queue q pred & [f])

Finds all items in the queue that satisfy the predicate, and re-queues them onto the end of the queue.

When a second function f is provided, it is called on each re-queued element. This can be used e.g. to update the timestamps of queued items.

Finds all items in the queue that satisfy the predicate, and re-queues them
onto the end of the queue.

When a second function `f` is provided, it is called on each re-queued
element. This can be used e.g. to update the timestamps of queued items.
sourceraw docstring

remove-from-queueclj

(remove-from-queue q pred)

Removes all items from the queue that satisfy the predicate.

Removes all items from the queue that satisfy the predicate.
sourceraw docstring

reverse-pop-queueclj

(reverse-pop-queue q)

Pops off the LAST item in the queue and returns it.

Pops off the LAST item in the queue and returns it.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close