Import std.algo.combinatorics
Factorial
function
@PanicsAtCaller Public Function Factorial(n: Int): Long
n!, the number of orders of n things, from 0! = 1 to 20!, the most a Long holds. Any other n
panics.
Examples
Expect(Factorial(0) == 1)
Expect(Factorial(5) == 120)Report an issue with this page or with FutureBlitz on GitHub.