all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14369: 24.3; loop docstring does not mention hash-map
@ 2013-05-08 13:29 Wilfred Hughes
  2013-05-10  2:01 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Wilfred Hughes @ 2013-05-08 13:29 UTC (permalink / raw)
  To: 14369

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-10  2:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-08 13:29 bug#14369: 24.3; loop docstring does not mention hash-map Wilfred Hughes
2013-05-10  2:01 ` Glenn Morris

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.