Re:Understanding the Elm type system
by elbenshira on Tuesday June 07, 2016 @10:49AM
(#11854867)
In this case, you think of `connectWords` as a function that takes two arguments. But since it is curried, you can also do this:
`world` is "Hello world", and `bob` is "Hello bob". That is the power of currying. A maybe more useful example is specifying the mapping function in `List.map` without supplying the list to map over. This allows you to use the same map with multiple lists.
[ Parent
| on HN ]
There are no comments on this comment yet.