Pudu programming language
Menu
API reference

Std.Math.lcm

1 declaration

fn

lcm: T -> T -> T where T: Ord + Zero + One + Add + Sub + Mul + Div + Rem

This is a callable function.

What it does

The least common multiple. Nought with either argument nought, since no

positive multiple of nought exists.

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