juspay / juspay/streamly-extras

Some suggestions

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2
Forks
7
PR merge metrics
No merged PRs in 30d

Description

* Use [groupsBy](https://github.com/composewell/streamly/blob/f6fd95a403a99d47a3c63a895c84106c96424448/src/Streamly/Internal/Prelude.hs#L3156) wherever you need [groupConsecutiveBy](https://github.com/juspay/streamly-extras/blob/88a6a75602aeea5a8390c15d83b24e017d080e85/src/Streamly/Extra.hs#L472). `groupsBy` is meant for exactly this purpose.

* The [counts fold](https://github.com/juspay/streamly-extras/blob/88a6a75602aeea5a8390c15d83b24e017d080e85/src/Streamly/Extra.hs#L496) can be expressed idiomatically as `FL.classify FL.sum` .

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.