Skip to main content
Module

x/fun/mod.ts>number.add

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function number.add
import { number } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { add } = number;

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