Pudu programming language
Menu
API reference

Std.Math.factorial

1 declaration

fn

factorial: T -> T where T: Ord + Zero + One + Add + Mul

This is a callable function.

What it does

The product of every whole number from one up to the value.

A value below one has an empty product, which is one.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.

Back to Std.MathSearch related declarations