From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: (loop with (VAR1 VAR2) ...) Date: Mon, 17 Mar 2014 07:29:58 +0100 Message-ID: <874n2xs5g9.fsf@zigzag.favinet> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1395037580 7244 80.91.229.3 (17 Mar 2014 06:26:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2014 06:26:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Barry Margolin Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 17 07:26:29 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WPR0G-0006CD-HJ for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Mar 2014 07:26:28 +0100 Original-Received: from localhost ([::1]:55830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPR0G-0007Ia-4E for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Mar 2014 02:26:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPQzy-0007IQ-8T for help-gnu-emacs@gnu.org; Mon, 17 Mar 2014 02:26:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPQzq-00053k-V0 for help-gnu-emacs@gnu.org; Mon, 17 Mar 2014 02:26:10 -0400 Original-Received: from smtp206.alice.it ([82.57.200.102]:5689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPQzq-00053Y-Ih for help-gnu-emacs@gnu.org; Mon, 17 Mar 2014 02:26:02 -0400 Original-Received: from zigzag.favinet (79.31.70.157) by smtp206.alice.it (8.6.060.28) id 529A678F1545FCFB; Mon, 17 Mar 2014 07:25:59 +0100 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1WPR3q-0003gD-A1; Mon, 17 Mar 2014 07:30:10 +0100 Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: (Barry Margolin's message of "Sun, 16 Mar 2014 21:28:01 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.102 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96548 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Barry Margolin () Sun, 16 Mar 2014 21:28:01 -0400 Does it mention "destructuring"? Any place where a single variable is=20 allowed, you can have a list of variables, and it will assign them from= =20 the list of values. It's mentioned specifically for =E2=80=98for=E2=80=99 VARs in (info "(cl) F= or Clauses") so i suppose this is a doc bug (missing xref). Or maybe the description should be moved to "Loop Basics". Anyway: (loop with (x y) =3D '(10 20)=20 for n upto 5=20 collect (cons (* n x)=20 (* n y))) ((0 . 0) (10 . 20) (20 . 40) (30 . 60) (40 . 80) (50 . 100)) it works w/ =E2=80=98with=E2=80=99 as well as for =E2=80=98for=E2=80=99; i'= m happy. Thanks for the tip. =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlMmlmoACgkQZwMiJEyAdQI/DQCcCh7OSyhokNsyP5tz3Z31Tr6+ PGYAn3eCimB9rMoJI/vCEaDEECTkvk6O =pn2X -----END PGP SIGNATURE----- --=-=-=--