News for hackers. Stuff that matters.
Re:Functional Programming in 5 Minutes by hcarvalhoalves on Monday May 20, 2013 @12:09AM (#5735819)
In FP, you can treat all functions as "curryable" because that's how you achieve composition. So that would be the equivalent of naming all your functions "callTwice". Now that doesn't make sense.
Re:Functional Programming in 5 Minutes by PySlice on Monday May 20, 2013 @12:17AM (#5735850)
I don't see how that invalidates my explanation

In F# I would certainly call it "callTwice" too:

  let callTwice aFunction y = aFunction (aFunction y)