Functions are created with the let keyword. Parameters for functions are curried and are implicitly typed by the compiler.
The last expression in a function will be the returned value
letaddab=a+b
You can also explicitly set the types for your parameters