From: Martin DeMello Date: 2003-07-21T04:36:43+09:00 Subject: Re: Proposal: Array#to_h, to simplify hash generation Yukihiro Matsumoto wrote: > In message "Re: Proposal: Array#to_h, to simplify hash generation" > on 03/07/20, Martin DeMello writes: > | > |And we already have Array methods that assume an associative array. > > I think you mean assoc and rassoc. But they are look-up methods. No > harm would happen for non assoc input for them. I feel like Hash > creation is little bit different. Actually, I've always felt those were out of place in Array too. And if they were factored out into an AssocArray mixin, we could conveniently put hashify there. martin