From: Kalman Noel Date: 2006-10-27T00:55:19+09:00 Subject: Re: '**' as hash splat? Rick DeNatale: > Robert Dober: >> Kalman Noel: >>> Ken Bloom: >>>> Trans: >>>>> a = [2,1] >>>>> [3,*a] #=> [3,2,1] >>>> Since [] is a method, >>> >>> irb> method :[] >>> NameError: undefined method `[]' for class `Object' >> >> Array.instance_method :[] > > But I think that Kalman's point wasn't that there are no :[] methods, > which of course there are, but that the snippet > > [3, *a] > > Isn't a method call but syntax. Exactly. Kalman