Skip to main content
Module

x/rimbu/typical/mod.ts>Num.Add

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Num.Add
import { type Num } from "https://deno.land/x/rimbu@0.12.3/typical/mod.ts";
const { Add } = Num;

Returns the sum of given numbers.

Examples

Example 1

Add<13, 25> => 38
Add<1386, 335> => 1721

Type Parameters

N1 extends number
N2 extends number
definition: StrNum.ToNumber<StrNum.Add<StrNum.FromNumber<N1>, StrNum.FromNumber<N2>>>