[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r105186: * cl.texi (For Clauses): Add
From: |
Lars Magne Ingebrigtsen |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r105186: * cl.texi (For Clauses): Add destructuring example processing an |
Date: |
Thu, 14 Jul 2011 02:14:35 +0200 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 105186
author: Kevin Ryde <address@hidden>
committer: Lars Magne Ingebrigtsen <address@hidden>
branch nick: trunk
timestamp: Thu 2011-07-14 02:14:35 +0200
message:
* cl.texi (For Clauses): Add destructuring example processing an
alist.
modified:
doc/misc/ChangeLog
doc/misc/cl.texi
=== modified file 'doc/misc/ChangeLog'
--- a/doc/misc/ChangeLog 2011-07-12 12:39:51 +0000
+++ b/doc/misc/ChangeLog 2011-07-14 00:14:35 +0000
@@ -1,3 +1,8 @@
+2010-07-10 Kevin Ryde <address@hidden>
+
+ * cl.texi (For Clauses): Add destructuring example processing an
+ alist (bug#6596).
+
2011-07-12 Lars Magne Ingebrigtsen <address@hidden>
* org.texi (Special agenda views): Fix double quoting (bug#3509).
=== modified file 'doc/misc/cl.texi'
--- a/doc/misc/cl.texi 2011-07-03 12:40:59 +0000
+++ b/doc/misc/cl.texi 2011-07-14 00:14:35 +0000
@@ -2586,7 +2586,14 @@
than values the trailing variables get the value @code{nil}.
If @code{nil} is used as a variable name, the corresponding
values are ignored. Destructuring may be nested, and dotted
-lists of variables like @code{(x . y)} are allowed.
+lists of variables like @code{(x . y)} are allowed, so for example
+to process an alist
+
address@hidden
+(loop for (key . value) in '((a . 1) (b . 2))
+ collect value)
+ @result{} (1 2)
address@hidden example
@node Iteration Clauses, Accumulation Clauses, For Clauses, Loop Facility
@subsection Iteration Clauses
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r105186: * cl.texi (For Clauses): Add destructuring example processing an,
Lars Magne Ingebrigtsen <=