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.

Properties

eqBool BoolEq
Instance of boolean equality comparison.
final
fold → A Function(bool) Function<A>(LazyArg<A> onFalse, LazyArg<A> onTrue)
Alias for match
final
foldW Object? Function(bool) Function<A, B>(LazyArg<A> onFalse, LazyArg<B> onTrue)
Alias for matchW
final
semigroupAll SemigroupAll
Instance of the Semigroup with logical AND.
final
semigroupAny SemigroupAny
Instance of the Semigroup with logical OR.
final

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.