[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

maphash: improve docstring

From: Paul Pogonyshev
Subject: maphash: improve docstring
Date: Mon, 28 Mar 2016 22:31:27 +0200

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)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]