Convenience functions for working with Bools
None of the bools are true.
none [ True, True ]
--> False
none [ True, False ]
--> False
none [ False, False ]
--> TrueAt least one of the bools is true.
any [ True, True ]
--> True
any [ True, False ]
--> True
any [ False, False ]
--> FalseNot all of them are true
notAll [ True, True ]
--> False
notAll [ True, False ]
--> True
notAll [ False, False ]
--> TrueDetermine if all predicates are satisfied by the value.
allPass [ (>) 20, (<) 10 ] 11
--> True
allPass [ (>) 20, (<) 10 ] 21
--> False
allPass [ (>) 20, (<) 10 ] 4
--> False
allPass [] 21
--> TrueDetermine if any predicate is satisfied by the value.
anyPass [ (>) 20, (<) 10 ] 100
--> True
anyPass [ (>) 20, (==) 10 ] 21
--> False
anyPass [] 21
--> FalseTake a value, and wrap it with Just from a Bool
toMaybe 4 True
--> Just 4
toMaybe 4 False
--> NothingTurn a bool into a string
toString True
--> "True"
toString False
--> "False"
All the bools are true.