Entries from 2009-03-21 to 1 day

学習めも

x_plus_y_plus_z = proc{|x, y, z| x + y + z} one_plus_two_plus_z = x_plus_y_plus_z.curry.call(1).call(2) (10..20).map(&one_plus_two_plus_z) #=> [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23] zのみを定数で代入する方法が思いつかんかった