import { type Decr } from "https://deno.land/x/rimbu@1.0.2/typical/num.ts";
Decreases a positive number by 1, or if the number is not positive, returns never.
Examples
Example 1
Example 1
Dec<5> => 4
Dec<434> => 433
Dec<0> => never
import { type Decr } from "https://deno.land/x/rimbu@1.0.2/typical/num.ts";
Decreases a positive number by 1, or if the number is not positive, returns never.
Example 1
Dec<5> => 4
Dec<434> => 433
Dec<0> => never