A simple use of the if constructor
The use of a catch-all guard in the if constructor
odd or even with if
odd or even with case
A classic, recursive factorial
Factorial using guards
Even function using pattern matching and guards
A function using pattern matching, guards and a catch-all guard