factorial top-level property
Returns the factorial of a positive integer. Throws and error of type ArgumentError if a negative argument is provided.
Implementation
final factorial = MemoizedFunction(_factorial);
Returns the factorial of a positive integer. Throws and error of type ArgumentError if a negative argument is provided.
final factorial = MemoizedFunction(_factorial);