Last active
December 18, 2015 22:19
-
-
Save dLobatog/5853714 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sum_of_squares_upto = curried_sum.(lambda { |x| x**2 } , 0) | |
sum_of_squares_upto.(5) #=> 55 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment