Applying arguments to functions (currying)

I wish I had known more about Haskell and its influence on Scala before I wrote the Scala Cookbook. I don’t think that knowledge would have helped immensely, but it may have made the Cookbook a little better, maybe two to three percent better, something like that.

One area where more knowledge of Haskell would have helped is in regards to applying arguments to functions, i.e, currying. This page from the book Real World Haskell shows a nice example of how applying arguments to functions in Haskell works.

Photo D8