I am kinda new to Ruby and still trying to understand some of the language design principles. IF I\'ve got it right, the lambda expression call in Ruby must be with square brace
If you want brackets, you can do
by_two = lambda { |x| x * 2 } by_two.(5) # => 10
Note the . between by_two and (5).
.
by_two
(5)