import { type Inc } from "https://deno.land/x/rimbu@1.0.2/typical/num.ts";
Add 1 to the given natural number.
Examples
Example 1
Example 1
Inc<4> => 5
Inc<312> => 313
Inc<-3> => never
import { type Inc } from "https://deno.land/x/rimbu@1.0.2/typical/num.ts";
Add 1 to the given natural number.
Example 1
Inc<4> => 5
Inc<312> => 313
Inc<-3> => never