not
import { not } from "https://raw.githubusercontent.com/baetheus/fun/main/predicate.ts";
Negates the result of an existing Predicate.
@example
import { not } from "./predicate.ts";
const isPositive = (n: number) => n > 0;
const isZeroOrNegative = not(isPositive);
const result1 = isZeroOrNegative(1); // false
const result2 = isZeroOrNegative(0); // true
const result3 = isZeroOrNegative(-1); // true