emacs-devel
[Top][All Lists]
Advanced

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

Re: general lazy list facility for Emacs Lisp?


From: Eric Schulte
Subject: Re: general lazy list facility for Emacs Lisp?
Date: Wed, 23 Mar 2011 23:27:48 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Ted Zlatanov <address@hidden> writes:

> On Wed, 23 Mar 2011 20:10:27 +0100 Tassilo Horn <address@hidden> wrote: 
>
> TH> Just a short remark on what I've had in mind with "real" memoization: If
> TH> elisp had closures (not clojures ;-)), then one could write memoize as
> TH> function
>
> I think `lexical-let' (according to the docstring at least) creates true
> CL-style closures in ELisp.
>

Just for completeness, a lazy.el file is attached implementing lazy
sequences in Emacs Lisp.  This is basically an exact copy of lazy.lisp
with `lexical-let' used where closures are needed.

Best -- Eric

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


reply via email to

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