I want to map a function over the values in a hash table, like so:
(hash-map add1 (hash "apple" 1 "pear" 2))
=> #hash(("apple" . 2) ("pear" . 3))
Is there a library function to do this? It'd be good to have one that worked on immutable hashetables too.
I looked on PlaneT, but didn't see anything there.
Now, if this really doesn't exist, I'll go ahead and write it. What would the etiquette for getting this into racket? I just fork it on github and add it to the standard library (and the docs!) and submit a pull request? Or should I make it a planeT first, and then ask for it to be moved in? I'd like to help, but I just don't know what's the 'proper' way to go about it.
for/hash
, and that's what I've ended up using. Thanks a bunch. – Obligato