forked from scalaz/scalaz
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a general foldMap function except that key is used for an arg of a foldMap function.[1] As mentioned by foxik[2], add a special case in foldMapWithKey when foldMapping a leaf, which allows us not to foldMap redundantly. [1] haskell/containers#24 [2] haskell/containers@e60634d
- Loading branch information
1 parent
c58a6f9
commit 1824476
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters