factorial

Function to calculate the factorial of a number.

Return

The factorial of the number.

Receiver

The number to calculate the factorial of.

Throws

if the number is negative.