advanced/stabby_expr_body.rb
tests/_examples/advanced/stabby_expr_body.rb in the metorex repository.
# A stabby lambda whose body is one expression in braces
f = ->(x) { x + 1 }
puts f.call(4)
Output:
5
tests/_examples/advanced/stabby_expr_body.rb in the metorex repository.
# A stabby lambda whose body is one expression in braces
f = ->(x) { x + 1 }
puts f.call(4)
Output:
5