Yukihiro Matsumoto wrote:
> In message "Re: Hash#rekey"
>     on Mon, 5 Feb 2007 03:08:15 +0900, "Trans" <transfire / gmail.com> writes:
> |A while back I offered the idea of being able to define a key coerce
> |proc, eg.
> |
> |  h = Hash.new.key!{ |k| k.to_s }
> |
> |Such that keys would always be strings. Might someting like that be a
> |viable solution?
I quite like this idea.

> Maybe, but not with a name like "key!".
key_coerce? coerce_key? key_proc=?

> I don't think "rekey" represents the behavior well.  Any better name?
> transpose_keys comes to my mind.
Well, given what it's doing, map_key! seems logical -- map! + each_key. 
('course, logical != intuitive...)

Devin