Files
  • main.rb
main.rb
1
2
3
adder = -> a, b { a + b }
add_two = adder.curry.(2)
puts add_two.(5)
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]