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
+6
View File
@@ -29,14 +29,20 @@ mconcat :: Monoid a => [a] -> a
Semigroup
---------
#### <>
```haskell
(<>) :: Semigroup a => a -> a -> a
```
#### sconcat
```haskell
sconcat :: Semigroup a => NonEmpty a -> a
```
#### stimes
```haskell
stimes :: (Semigroup a, Integral b) => b -> a -> a
```