lspitzner / lspitzner/pqueue

Strict folds

Open
#21 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.