3 ms·
In nearly every mainstream programming language, you call a function like this: f(a, b, c) But not in Haskell, where you do it like this: f a b c Of course,
by johan_larson 12y ago
In nearly every mainstream programming language, you call a function like this:
f(a, b, c)
But not in Haskell, where you do it like this:
f a b c
Of course, there is a reason for doing things this way in Haskell, namely making currying a natural part of the language. If f is a function of three variables, f a b binds values to the first two parameters, yielding a function of one variable.
But it's still a change and a bit of a hurdle.