From: "David A. Black" Date: 2009-02-01T05:03:44+09:00 Subject: Re: Array#to_h Hi -- On Sun, 1 Feb 2009, Roger Pack wrote: > Not that I would find it useful at all, but is there is a Hash#to_a > should there not be an Array#to_h? Not if it's not useful :-) It might be, though. It's been talked about a lot over the years. As I recall, part of the problem is the question of what it would mean; for example, given this: ["a","b","c","d"].to_h is it ["a" => "b", "c" => "d"] or [0 => "a", 1 => "b", ....] ? David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2) http://www.wishsight.com => Independent, social wishlist management!