Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c0a8ae95
Commit
c0a8ae95
authored
Jul 14, 2011
by
Kevin Ryde
Committed by
Lars Magne Ingebrigtsen
Jul 14, 2011
Browse files
* cl.texi (For Clauses): Add destructuring example processing an
alist.
parent
f2027cdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
doc/misc/ChangeLog
doc/misc/ChangeLog
+5
-0
doc/misc/cl.texi
doc/misc/cl.texi
+8
-1
No files found.
doc/misc/ChangeLog
View file @
c0a8ae95
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).
...
...
doc/misc/cl.texi
View file @
c0a8ae95
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment