Re:Functional Programming in 5 Minutes
by Twisol on Monday May 20, 2013 @12:00AM
(#5735796)
`g(f)` returns a function, which is then immediately called with another value. You're passing `3` to the result of `g`, not to the function you passed to `g`.
[ Parent
| on HN ]
Re:Functional Programming in 5 Minutes
by lelandbatey on Monday May 20, 2013 @01:40AM
(#5736094)
Ah, I see, that makes sense. Thanks for the explanation.