From: Ryan Davis Date: 2010-12-29T13:53:27+09:00 Subject: Re: What am I missing about splat operator? On Dec 28, 2010, at 20:35 , RichardOnRails wrote: > A little more info ... this time, incorrect IMHO: > > Splat array of arrays: > a = [[:planes, 21], [:cars, 36]] > h = Hash[*a] # => {[:planes, 21]=>[:cars, 36]} > Allegedly, h = Hash[*a] # => { :planes=>21, :cars=>36} > Do you concur in my finding that the site's in error here? > > So, I hunt for a more informative (and more accurate) presentation of > the virtues of splat. http://theplana.wordpress.com/2007/03/03/ruby-idioms-the-splat-operator/ ^^^^^^^^^^ the comments correct the errors in the post. Hash[a] works fine.