import { type Num } from "https://deno.land/x/rimbu@1.1.0/typical/index.ts";
const { Div } = Num;
Returns the result of dividing the first given natural number by the second.
Examples
Example 1
Example 1
Div<0, 0> => never
Div<9, 3> => 3
Div<14, 5> => 2
definition: N2 extends 0 ? never : N1 extends 0 ? 0 : N1 extends N2 ? 1 : StrNum.ToNumber<StrNum.Divide<StrNum.FromNumber<N1>, StrNum.FromNumber<N2>>[0]>