Ted Zlatanov writes: > On Wed, 23 Mar 2011 20:10:27 +0100 Tassilo Horn 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