emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master f6b5db6: Add support for generators


From: Michael Heerdegen
Subject: Re: master f6b5db6: Add support for generators
Date: Sat, 21 Mar 2015 06:52:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Michael Heerdegen <address@hidden> writes:

> I would now also like to work on including my higher-level functions if
> there are no objections.

Ok, this is how the thing now looks like:

    https://github.com/michael-heerdegen/iterators.el

the file is also attached.

This is now a library of higher level stuff for the iterator objects
created by Daniel's generators that were previously included into Emacs.

What I had been named "cache" in the last version - that was a dynamic
cache for the elements returned by an iterator implemented as a delayed
list based on delayed conses - has been reimplemented and is now named
"ilist" - IteratorLIST.

These are delayed lists as well, but built from normal conses, that
(can) reference an iterator to produce "more elements" on request.  I
chose this approach because I think it suits much better the nature of
Emacs Lisp.

You can convert from/to lists and iterators, and some functions to work
with ilists are included as well.

Dunno yet how useful this stuff is, at least I need it personally.

We could put this to Gnu Elpa if Emacs Dev is interested; else, I'll put
it on Melpa.


Thanks,

Michael.


Attachment: iterators.el
Description: application/emacs-lisp


reply via email to

[Prev in Thread] Current Thread [Next in Thread]