boolean library
Classes
-
BooleanOrd
-
Implements the
Ord
typeclass for boolean values.
-
BoolEq
-
Implements the equality comparison for boolean values.
-
MonoidAll
-
Implements the
Monoid
typeclass for boolean values with logical AND.
-
MonoidAny
-
Implements the
Monoid
typeclass for boolean values with logical OR.
-
SemigroupAll
-
Implements the
Semigroup
typeclass for boolean values with logical AND.
-
SemigroupAny
-
Implements the
Semigroup
typeclass for boolean values with logical OR.
Functions
-
match<A>(LazyArg<A> onFalse, LazyArg<A> onTrue)
→ A Function(bool)
-
Returns a function that depending on the provided bool value,
invokes and returns the result of either
onFalse
or onTrue
function.
Both onFalse
and onTrue
must return the same type A
.
-
matchW<A, B>(LazyArg<A> onFalse, LazyArg<B> onTrue)
→ Object? Function(bool)
-
Returns a function that depending on the provided bool value,
invokes and returns the result of either
onFalse
or onTrue
function.
The return type is Object?
because onFalse
and onTrue
can potentially
return different types.