[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using `iter-yield` with `seq.el` and mapping functions?
From: |
Okamsn |
Subject: |
Using `iter-yield` with `seq.el` and mapping functions? |
Date: |
Sat, 05 Nov 2022 21:28:08 +0000 |
Hello,
Is it possible to use `iter-yield` via mapping functions and `seq.el`
functions? For example, when I do
(setq iter-maker (iter-lambda (x)
(seq-doseq (item x)
(iter-yield item))))
(setq my-iter (funcall iter-maker '(1 2 3)))
(iter-next my-iter)
I get an error "(void-function cps-internal-yield)".
When I try
(setq iter-maker (iter-lambda (x)
(seq-do #'iter-yield x)))
(setq my-iter (funcall iter-maker '(1 2 3)))
(iter-next my-iter)
I get the error "(error "‘iter-yield’ used outside a generator")".
These are both with lexical binding enabled on Emacs 28.1.
Can iterators be used with these functions and other mapping functions,
such as `mapatoms`, `mapc`, and the like?
Thank you.
- Using `iter-yield` with `seq.el` and mapping functions?,
Okamsn <=
Re: Using `iter-yield` with `seq.el` and mapping functions?, Michael Heerdegen, 2022/11/08