Skip to main content
Module

x/fun/number.ts>add

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function add
import { add } from "https://deno.land/x/fun@v2.0.0/number.ts";

Add two numbers.

Examples

Example 1

import * as N from "./number.ts";
import { pipe } from "./fn.ts";

const result = pipe(2, N.add(2)); // 4

Parameters

second: number

Returns

(first: number) => number