Functions of several arguments
Functions of more than one argument are defined as functions of a single tuple argument.
Function application can be written without the explicit creation of a tuple:
Example
Uses
The greatest common divisor of two natural numbers is defined as
It can be computed using Euclid's algorithm, which considers three cases:
1. The two numbers are equal:
2. The first number is larger:
3. The second number is larger:
Applications: