fact

fun Int.fact(): Int

Computes the factorial of this integer.

Receiver

The integer to compute the factorial of (must be non-negative).

Return

The factorial of this integer.

Throws

if the integer is negative.