Skip to content
Permalink
Browse files

Prelude: Document connection to Monoid for Bool/even and Bool/odd (#683)

  • Loading branch information...
sjakobi committed Aug 7, 2019
1 parent c465bb9 commit 20e78e328f1113da8d6e17e3da4f2d4df544418f
Showing with 6 additions and 2 deletions.
  1. +3 −1 Prelude/Bool/even
  2. +3 −1 Prelude/Bool/odd
@@ -1,6 +1,8 @@
{-
Returns `True` if there are an even number of `False` elements in the list and
returns `False` otherwise
returns `False` otherwise.
This function is the `Monoid` for the `==` operation.
-}
let even
: List Bool Bool
@@ -1,6 +1,8 @@
{-
Returns `True` if there are an odd number of `True` elements in the list and
returns `False` otherwise
returns `False` otherwise.
This function is the `Monoid` for the `!=` operation.
-}
let odd
: List Bool Bool

0 comments on commit 20e78e3

Please sign in to comment.
You can’t perform that action at this time.