/// Gets the precalculated value for n!.
Gets the precalculated value for n!.
Gets the precalculated value for n! .
fn factorial(n: usize) -> u32 {
    /// Precalculated factorials from 0! to 13!.
    const FACTORIALS: [u32; 13] = [
        1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600,
    ];
    FACTORIALS[n]
}
fn factorial ( n : usize ) -> u32 { /// Precalculated factorials from 0! to 13!. const FACTORIALS : [ u32 ; 13 ] = [ 1 , 1 , 2 , 6 , 24 , 120 , 720 , 5040 , 40320 , 362880 , 3628800 , 39916800 , 479001600 , ] ; FACTORIALS [ n ] }
Gets the precalculated value for n!.
Gets the precalculated value for n! .
n
usize