Lambda shorthand Ruby 1.9 p = -> a,b,c {a+b+c} puts p.(1,2,3) puts p[1,2,3] Ruby 1.8 p = lambda {|a,b,c| a+b+c} puts p.call(1,2,3)