factorial top-level property

MemoizedFunction<BigInt, BigInt> factorial
final

Returns the factorial of a positive integer. Throws and error of type ArgumentError if a negative argument is provided.

Implementation

final factorial = MemoizedFunction(_factorial);