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

Add 'partitionWith' #319

Closed
chshersh opened this issue Aug 12, 2020 · 2 comments · Fixed by #321
Closed

Add 'partitionWith' #319

chshersh opened this issue Aug 12, 2020 · 2 comments · Fixed by #321
Assignees
Labels
new Bring something new into library (add function or type or interface)

Comments

@chshersh
Copy link
Contributor

A function with the following type:

partitionWith :: (a -> Either b c) -> [a] -> ([b], [c])

It is very useful occasionally.

@chshersh chshersh added the new Bring something new into library (add function or type or interface) label Aug 12, 2020
@chshersh chshersh added this to the v0.8.0.0: Standard milestone Aug 12, 2020
@rektrex
Copy link
Collaborator

rektrex commented Aug 13, 2020

I would like to add this. In which file should this function go?

@chshersh
Copy link
Contributor Author

@rektrex The Relude.List module looks like a good fit for this function 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new Bring something new into library (add function or type or interface)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants