Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort fold #203

Open
MMesch opened this issue Dec 11, 2023 · 1 comment
Open

Sort fold #203

MMesch opened this issue Dec 11, 2023 · 1 comment

Comments

@MMesch
Copy link

MMesch commented Dec 11, 2023

Would it make sense to include a sort container fold to this library? My use case is that I want to compute statistics over a collection (with the Haskell Frames library) and sort it in a single pass.

@Gabriella439
Copy link
Owner

You can use fmap sort Control.Foldl.list to get the desired behavior, I think. The main reason I'd want to avoid a separate utility is because then we'd need a way to sort each type of collection that we might assemble using a Fold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants