More Examples(using an alternative syntax for function definition)
Full declaration of argument and return types by the programmer:
Inference from the type of one operand:
val g = fn(x) => x + 1.0;
val f = fn : real -> real
Inference from the return type: