Function: queue-iter

queue-iter is a byte-compiled function defined in queue.el.

Signature

(queue-iter QUEUE)

Documentation

Return a queue iterator object.

Calling iter-next on this object will retrieve the next element from the queue. The queue itself is not modified.

Source Code

;; Defined in ~/.emacs.d/elpa/queue-0.2/queue.el
(queue--when-generators
 (iter-defun queue-iter (queue)
   "Return a queue iterator object.

Calling `iter-next' on this object will retrieve the next element
from the queue. The queue itself is not modified."
   (let ((list (queue-head queue)))
     (while list (iter-yield (pop list))))))