Skip to main content
Module

x/fun/number.ts>initZero

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

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

Examples

Example 1

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

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

Returns

number