Functions are declared using fn, and may be given a name with val. All functions take one argument and are curried.
To declare a function with multiple arguments, use multiple functions.
inc' partially applies add to 1, to create a new function. This has the same behaviour as inc.
(* examples/functions.sml *)