File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -197,11 +197,15 @@ intercalate sep xs = (foldl go { init: true, acc: mempty } xs).acc
197197 go { init = true } x = { init: false , acc: x }
198198 go { acc = acc } x = { init: false , acc: acc <> sep <> x }
199199
200- -- | Test whether all `Boolean` values in a data structure are `true`.
200+ -- | The conjunction of all the values in a data structure. When specialized
201+ -- | to `Boolean`, this function will test whether all of the values in a data
202+ -- | structure are `true`.
201203and :: forall a f . (Foldable f , BooleanAlgebra a ) => f a -> a
202204and = all id
203205
204- -- | Test whether any `Boolean` value in a data structure is `true`.
206+ -- | The disjunction of all the values in a data structure. When specialized
207+ -- | to `Boolean`, this function will test whether any of the values in a data
208+ -- | structure is `true`.
205209or :: forall a f . (Foldable f , BooleanAlgebra a ) => f a -> a
206210or = any id
207211
You can’t perform that action at this time.
0 commit comments