forked from haskell/bytestring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Straighten folds and scans. (haskell#364)
* Add strict right folds. * Add property checks. * Add benchmarks. * Inline strictness checks. * Straighten scans. * Fix whitespace. * Use `===` for equality. * Use infix operator for brevity. * Add bench marks for lazy scans. * Use standard recursion schemes. * Dodge import conflicts on older GHC versions. * Final considerations according to the last review. * Final considerations according to one more last review. * Add bench mark for lazy accumulating maps. * Throw away `mapAccum[LR]Chunks`. Turns out we do not really need it. We thought we need it to implement `scan[lr]`, but actually `mapAccum[LR]` is enough.
- Loading branch information
1 parent
02a75f7
commit bdcbd88
Showing
5 changed files
with
185 additions
and
32 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
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
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