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 Lwt_result.collect without deps #1040

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

seprov
Copy link

@seprov seprov commented Nov 15, 2024

What

This PR adds Lwt_result.collect without adding ocaml-containers as a dependency.

Why

To handle the common case where a list of results need to be collected to a single meaningful result.

Notes

partition_filter_map and split_result are available in ocaml-containers, but to avoid adding the dependency, I've recreated them here.

Also, I'm not sure how y'all like to mention future releases in documentation comments. Let me know about that, thanks.

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

Successfully merging this pull request may close these issues.

1 participant