Skip to main content
Module

x/fun/mod.ts>boolean.not

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 boolean.not
import { boolean } from "https://deno.land/x/fun@v2.0.0-alpha.6/mod.ts";
const { not } = boolean;

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