Skip to main content
Module

x/fun/boolean.ts>not

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

Negate a given boolean.

Examples

Example 1

import { not } from "./boolean.ts";

const result1 = not(true); // false
const result2 = not(false); // true

Parameters

ua: boolean

Returns

boolean