import { type Num } from "https://deno.land/x/rimbu@0.13.5/typical/mod.ts";
const { Mult } = Num;
Returns the result of multiplying the given natural numbers.
Examples
Example 1
Example 1
Mult<0, 0> => 0
Mult<9, 10> => 90
Mult<3, 18> => 54
definition: N1 extends 0 ? 0 : N2 extends 0 ? 0 : N1 extends 1 ? N2 : N2 extends 1 ? N1 : StrNum.ToNumber<StrNum.Mult<StrNum.FromNumber<N1>, StrNum.FromNumber<N2>>>