function
factorial
factorial(n: Int) -> Int
Computes the factorial of the integer.
Args:
- n (
Int
): The input value. Must be non-negative.
Returns:
The factorial of the input. Results are undefined if the input is negative.
function
factorial(n: Int) -> Int
Computes the factorial of the integer.
Args:
Int
): The input value. Must be non-negative.Returns:
The factorial of the input. Results are undefined if the input is negative.