import * as fun from "https://raw.githubusercontent.com/baetheus/fun/main/boolean.ts";
The boolean module contains combinators for working with boolean.
CombinableBooleanAll | The canonical implementation of Combinable for boolean that combines using the logical and operator. It contains the method combine. |
CombinableBooleanAny | The canonical implementation of Combinable for boolean that combines using the logical or operator. It contains the method combine. |
ComparableBoolean | The canonical implementation of Comparable for boolean. It contains the method equals. |
constFalse | A function that always returns false. |
constTrue | A function that always returns true. |
InitializableBooleanAll | The canonical implementation of Initializable for boolean that combines using the logical and operator. It contains the method combine. |
InitializableBooleanAny | The canonical implementation of Initializable for boolean that combines using the logical or operator. It contains the method combine. |
ShowableBoolean | The canoncial implementation of Showable for boolean. It uses JSON.stringify to turn a boolean into a string. It contains the method show. |
SortableBoolean | The canonical implementation of Sortable for boolean. It contains the method lt, lte, equals, gte, gt, min, max, clamp, between, and compare. |
and | A curried form of logical And. |
compare | Test the equality of two booleans. |
isBoolean | A type guard, indicating that a value is a boolean. |
match | Create a match function over boolean |
not | Negate a given boolean. |
or | A curried form of logical Or. |
sort | Compares two booleans, returning an Ordering. True is greater than False in this ordering, generally, but the specifics are always decided by the runtime. |