On 17 February 2013 21:41, Ludovic Courtès <l...@gnu.org> wrote: > Hi! > > Daniel Hartwig <mand...@gmail.com> skribis: >> +To count all elements: >> + >> +@lisp >> +(hash-count #f h) > > I would instead recommend (hash-count (const #t) h), and remove the > special case. WDYT?
A clearer example, sure. I included the special case as it runs in constant time, I suppose changing the order and making PRED optional would be a neater interface.