From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: general lazy list facility for Emacs Lisp? Date: Wed, 23 Mar 2011 19:27:54 +0100 Message-ID: <87k4fpu1xx.fsf@gmail.com> References: <87pqphswn3.fsf@lifelogs.com> <877hbpzsy8.fsf@member.fsf.org> <87oc51rcal.fsf@lifelogs.com> <87oc51u3vb.fsf@gmail.com> <87k4fpk8ti.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300904905 14440 80.91.229.12 (23 Mar 2011 18:28:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2011 18:28:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 19:28:21 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2Sn4-00039H-Lt for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2011 19:28:18 +0100 Original-Received: from localhost ([127.0.0.1]:34628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2Sn3-0001BE-W7 for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2011 14:28:18 -0400 Original-Received: from [140.186.70.92] (port=46951 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2Smv-0001AA-6u for emacs-devel@gnu.org; Wed, 23 Mar 2011 14:28:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2Smt-0006gw-Rl for emacs-devel@gnu.org; Wed, 23 Mar 2011 14:28:09 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:52512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2Smt-0006go-L2 for emacs-devel@gnu.org; Wed, 23 Mar 2011 14:28:07 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q2Smr-00032Y-As for emacs-devel@gnu.org; Wed, 23 Mar 2011 19:28:05 +0100 Original-Received: from 151.211.85-79.rev.gaoland.net ([79.85.211.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Mar 2011 19:28:05 +0100 Original-Received: from thierry.volpiatto by 151.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Mar 2011 19:28:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 151.211.85-79.rev.gaoland.net User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.3.50 (gnu/linux) Cancel-Lock: sha1:mi87+Nj2viqRDuQpp1uYcgBhZ6Q= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137595 Archived-At: Ted Zlatanov writes: > On Wed, 23 Mar 2011 18:46:16 +0100 Thierry Volpiatto 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, In this case ioccur-iter-circular produce infinite list. > e.g. http://landoflisp.com/lazy.lisp (that's a CL implementation but the > ELisp equivalent shouldn't be too bad). Didn't look carefuly, but it seem to be the same mechanism, with closures. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997