|
From: | Nala Ginrut |
Subject: | Re: [PATCH] Add-native-hashtable-helper-functions |
Date: | Wed, 27 Mar 2013 21:55:26 +0800 |
address@hidden (Ludovic Courtès) writes:
> Nala Ginrut <address@hidden> skribis:
>FWIW, I think it would be reasonable to add 'hash-keys'. Many users
>> +(define (hash-keys table)
>> + "Return all the keys from hash table."
>> + (hash-map->list (lambda (x y) x) table))
>
> That doesn’t seem sufficiently common to warrant a new procedure. WDYT?
are accustomed to writing in a style that's made more convenient by
'hash-keys', and in cases where efficiency is not crucial, I think
it's a fine style. Also, sometimes the values aren't needed.
IMO, we can afford to add a few conveniences such as this.
Mark
[Prev in Thread] | Current Thread | [Next in Thread] |