By alashcraft
via dotnet.dzone.com
Published: Mar 09 2010 / 03:56
Say I have a higher-order-function, ‘applier’, that takes another function and some arguments, applies the function to the arguments and returns the results multiplied by two. Now let’s say we have a function, ‘multiplier’ that simply multiplies two numbers. How can we combine applier and multiplier so that we end up with a function that simply multiplies two numbers and doubles the result?



Add your comment