(2012/05/23 0:23), mame (Yusuke Endoh) wrote:
> prijutme4ty (Ilya Vorontsov) wrote:
>> > pr_def(*[1,2,3])  # => [1] + [2,3]
> It should be: "1 + [2, 3]"


> pr_lambda = lambda{|recv,*args| puts "#{recv.inspect} + #{args.inspect}"}
> pr_lambda.call(*[1,2,3])  # => [1] + [2,3]

Also it should be "1 + [2, 3]".

-- 
// SASADA Koichi at atdot dot net