Skip to content
FutureBlitz

    Install

    Import std.algo.combinatorics

    Factorial

    std.algo.combinatorics

    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)

    std/algo/combinatorics.fb, line 207

    Report an issue with this page or with FutureBlitz on GitHub.