From: Wilfred Hughes <wilfred@editd.com>
To: 14369@debbugs.gnu.org
Subject: bug#14369: 24.3; loop docstring does not mention hash-map
Date: Wed, 8 May 2013 14:29:39 +0100 [thread overview]
Message-ID: <CAD0QT4KZCKNswOdER8_H_uwgjkVD1ksYEUjg9QCtu-tcXnzCKg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 611 bytes --]
Emacs' implementation of cl-loop includes support for the for-as-hash part
of Common Lisp's loop grammar.
The grammar:
for-as-hash::= var [type-spec] being {each | the}
{{hash-key | hash-keys} {in | of} hash-table
[using (hash-value other-var)] |
{hash-value | hash-values} {in | of} hash-table
[using (hash-key other-var)]}
Example usage:
(loop for key being the hash-keys of #s(hash-table data (1 2 3 4))
do (message "key: %s" key))
However, the docstring for cl-loop does not mention this syntax. I believe
it should.
Thanks
Wilfred
[-- Attachment #2: Type: text/html, Size: 769 bytes --]
next reply other threads:[~2013-05-08 13:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-08 13:29 Wilfred Hughes [this message]
2013-05-10 2:01 ` bug#14369: 24.3; loop docstring does not mention hash-map Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAD0QT4KZCKNswOdER8_H_uwgjkVD1ksYEUjg9QCtu-tcXnzCKg@mail.gmail.com \
--to=wilfred@editd.com \
--cc=14369@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.