Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/typical/num.ts>Add

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

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>>>