Comment

Comment by reddyonrails

total_sum = total.curry

sum_of_cubes = total_sum.(lambda { |x| x^3} )

sum_of_cubes.(1,2)

In ruby way

parent reddyonrails 12 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton