Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/mod.ts>number.initOne

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

A constant function that always returns 1. This is the multiplicative identity and is used as the init value for InitializableNumberProduct.

Examples

Example 1

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

const result = N.initOne(); // 1

Returns

number