monoid and fold rearranging

This commit is contained in:
Stephen Diehl
2016-12-13 09:14:39 +00:00
parent 0fb7730b0c
commit cc0565112f
4 changed files with 27 additions and 0 deletions
+9
View File
@@ -160,3 +160,12 @@ notElem :: (Foldable t, Eq a) => a -> t a -> Bool
```haskell
find :: Foldable t => (a -> Bool) -> t a -> Maybe a
```
```haskell
foldr1May :: (a -> a -> a) -> [a] -> Maybe a
```
```haskell
foldl1May :: (a -> a -> a) -> [a] -> Maybe a
```