Skip to main content
Module

x/fun/number.ts>emptyZero

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 emptyZero
import { emptyZero } from "https://deno.land/x/fun@v.2.0.0-alpha.11/number.ts";

A constant function that always returns 0. This is the additive identity and is used as the empty value for MonoidNumberSum.

Examples

Example 1

import * as N from "./number.ts";

const result = N.emptyZero(); // 0

Returns

number