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

x/fun/mod.ts>number.emptyNegInf

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

A constant function that always returns Number.NEGATIVE_INFINITY. This is the maximum identity and is used as the empty value for MonoidNumberMiximum.

Examples

Example 1

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

const result = N.emptyNegInf(); // Number.NEGATIVE_INFINITY

Returns

number