[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: general lazy list facility for Emacs Lisp?
From: |
Ted Zlatanov |
Subject: |
Re: general lazy list facility for Emacs Lisp? |
Date: |
Wed, 23 Mar 2011 15:33:44 -0500 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) |
On Wed, 23 Mar 2011 19:27:54 +0100 Thierry Volpiatto <address@hidden> wrote:
TV> Ted Zlatanov <address@hidden> writes:
>> On Wed, 23 Mar 2011 18:46:16 +0100 Thierry Volpiatto <address@hidden> wrote:
>>
TV> Not sure to understand what you want, but maybe have a look at some
TV> ioccur.el functions:
ELISP> (setq A '(a b c d))
TV> (a b c d)
>>
ELISP> (setq it (ioccur-iter-circular A))
>>
>> That's useful but I was thinking more of infinite lists,
TV> In this case ioccur-iter-circular produce infinite list.
Hmm, it's not really what I had in mind, although it's certainly
useful... The ioccur.el code returns an iterator across an existing
collection. I need the next element dynamically generated, not
retrieved from a pre-existing collection. The idea is to avoid the
memory and CPU usage until you know you need the data.
I think Tassilo's macro or something similar with closures is closer to
my need and the general meaning of "lazy lists."
Ted
- general lazy list facility for Emacs Lisp?, Ted Zlatanov, 2011/03/23
- Re: general lazy list facility for Emacs Lisp?, Tassilo Horn, 2011/03/23
- Re: general lazy list facility for Emacs Lisp?, Tassilo Horn, 2011/03/23
- Re: general lazy list facility for Emacs Lisp?, Ted Zlatanov, 2011/03/23
- Re: general lazy list facility for Emacs Lisp?, Eric Schulte, 2011/03/24
- Re: general lazy list facility for Emacs Lisp?, Ted Zlatanov, 2011/03/24
- Re: general lazy list facility for Emacs Lisp?, Eric Schulte, 2011/03/25
- Re: general lazy list facility for Emacs Lisp?, Stefan Monnier, 2011/03/23
- Re: general lazy list facility for Emacs Lisp?, Jason Earl, 2011/03/23
- Re: general lazy list facility for Emacs Lisp?, Tassilo Horn, 2011/03/23