From: Paul Pogonyshev <pogonyshev@gmail.com>
To: emacs-devel@gnu.org
Subject: maphash: improve docstring
Date: Mon, 28 Mar 2016 22:31:27 +0200 [thread overview]
Message-ID: <CAG7BpaqZ8g1f6+oUVnuS8YdOjAip8OB5_A6CjUm_N4tCtr0ADA@mail.gmail.com> (raw)
Docstring for `maphash' doesn't give any answer to the following
question: is the callback FUNCTION allowed to access the hash
table in read mode (I guess yes) and write mode? About the
latter I have no idea without studying internal implementation.
E.g., is the following code going to work as a way to filter a
hash table?
(maphash (lambda (key value)
(unless (i-like-it value)
(remhash key hash-table)))
hash-table)
Paul
next reply other threads:[~2016-03-28 20:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-28 20:31 Paul Pogonyshev [this message]
2016-03-28 21:57 ` maphash: improve docstring Stefan Monnier
2016-03-29 12:55 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2016-03-29 18:58 Paul Pogonyshev
2016-03-29 22:44 ` Stefan Monnier
2016-04-02 12:13 ` Paul Pogonyshev
2016-04-02 21:44 ` Stefan Monnier
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=CAG7BpaqZ8g1f6+oUVnuS8YdOjAip8OB5_A6CjUm_N4tCtr0ADA@mail.gmail.com \
--to=pogonyshev@gmail.com \
--cc=emacs-devel@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.