3 ms·total_sum = total.curry sum_of_cubes = total_sum.(lambda { |x| x^3} ) sum_of_cubes.(1,2) In ruby wayby reddyonrails 12y agototal_sum = total.curry sum_of_cubes = total_sum.(lambda { |x| x^3} ) sum_of_cubes.(1,2) In ruby way