You've successfully subscribed to The Poor Coder | Hackerrank Solutions
Great! Next, complete checkout for full access to The Poor Coder | Hackerrank Solutions
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Enable dark mode
Hackerrank Partial Applications Solution
In Partial Application, we create a lambda that takes a parameter and returns a lambda that does something with it. Example: multiply_function = -> (number) do -> (another_number) do number * another_number end end doubler = multiply_function.(2) tripler = multiply_function.(3) puts doubler.(4) puts tripler.