Function: iter-yield

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

Signature

(iter-yield VALUE)

Documentation

When used inside a generator, yield control to caller.

The caller of iter-next receives VALUE, and the next call to iter-next resumes execution with the form immediately following this iter-yield call.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/generator.el.gz
(defun iter-yield (_value)
  "When used inside a generator, yield control to caller.
The caller of `iter-next' receives VALUE, and the next call to
`iter-next' resumes execution with the form immediately following this
`iter-yield' call."
  (error "`iter-yield' used outside a generator"))