mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-13 16:38:14 +00:00
* cl.texi (For Clauses): Add destructuring example processing an
alist.
This commit is contained in:
parent
f2027cdf5a
commit
c0a8ae956f
@ -1,3 +1,8 @@
|
||||
2010-07-10 Kevin Ryde <user42@zip.com.au>
|
||||
|
||||
* cl.texi (For Clauses): Add destructuring example processing an
|
||||
alist (bug#6596).
|
||||
|
||||
2011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* org.texi (Special agenda views): Fix double quoting (bug#3509).
|
||||
|
@ -2586,7 +2586,14 @@ the trailing values are ignored, and if there are more variables
|
||||
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
|
||||
|
||||
@example
|
||||
(loop for (key . value) in '((a . 1) (b . 2))
|
||||
collect value)
|
||||
@result{} (1 2)
|
||||
@end example
|
||||
|
||||
@node Iteration Clauses, Accumulation Clauses, For Clauses, Loop Facility
|
||||
@subsection Iteration Clauses
|
||||
|
Loading…
Reference in New Issue
Block a user