Strict folds
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 17
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
There are currently no strict fold operations (except for the Foldable instances ofc) in this package. Would it be worthwhile to add strict variants of the different folds that are provided (like `foldrU`, `foldlU`)? Or is there any particular reason to not include them?
Regarding the implementation, they could just be implemented like the [default definitions](https://hackage.haskell.org/package/base-4.14.0.0/docs/src/Data.Foldable.html#Foldable) of `foldr'` and `foldl'`.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the existing fold operations in the pqueue package and compare their intended strict variants with the linked Data.Foldable default definitions for foldr' and foldl'. Confirm which provided folds need strict counterparts, then define completion as the agreed API being implemented and verified for the package's fold operations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100