You are viewing a single comment's thread. Return to all comments →
power_function = -> (x, z) { (x) ** z } base = gets.to_i raise_to_power = power_function.curry.(base) power = gets.to_i puts raise_to_power.(power)
Seems like cookies are disabled on this browser, please enable them to open this website
Currying
You are viewing a single comment's thread. Return to all comments →