From: Andrey Zaikin Date: 2009-12-05T14:21:27+09:00 Subject: Re: convert an array to a hash irb(main):001:0> a=["a", "hello", "b", "world", "c", "welcome", "d", "baby"] => ["a", "hello", "b", "world", "c", "welcome", "d", "baby"] irb(main):002:0> Hash[*a] => {"a"=>"hello", "b"=>"world", "c"=>"welcome", "d"=>"baby"} irb(main):003:0> --- http://zed.0xff.me -- Posted via http://www.ruby-forum.com/.