Function: iter-next

iter-next is a byte-compiled function defined in generator.el.gz.

Signature

(iter-next ITERATOR &optional YIELD-RESULT)

Documentation

Extract a value from an iterator.

YIELD-RESULT becomes the return value of iter-yield in the context of the generator.

This routine raises the iter-end-of-sequence condition if the iterator cannot supply more values.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/generator.el.gz
(defun iter-next (iterator &optional yield-result)
  "Extract a value from an iterator.
YIELD-RESULT becomes the return value of `iter-yield' in the
context of the generator.

This routine raises the `iter-end-of-sequence' condition if the
iterator cannot supply more values."
  (funcall iterator :next yield-result))