Monday, October 20, 2014

Haskell - Functions, Overloading, Pattern Matching, Variables

III. Functions

Function application is left associative
The expression a b c d is equivalent to (((a b) c) d)

If we want to use one expression as an argument to another, we have to use explicit parentheses to tell the parser what we really mean

Defining and calling functions is simple
add a b = a + b
add 1 2