by grndn · 10y ago · 0 comments
A big benefit of currying by default is that all functions can be treated as one parameter functions -- a very powerful tool for function composition.
Also, providing only some of the parameters (e.g. the first) and leaving some to be provided later is the technique known as "partial application" -- another key tool in functional programming.
If you think these things look interesting, you should for sure look into F#/OCaml/Haskell/Elm/etc.
No comments yet.