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

Consider adding while loop constructor for results #132

Open
JohannesMoersch opened this issue Nov 24, 2022 · 4 comments
Open

Consider adding while loop constructor for results #132

JohannesMoersch opened this issue Nov 24, 2022 · 4 comments
Milestone

Comments

@JohannesMoersch
Copy link
Owner

Not sure what the best syntax would be, but some ability to continue looping on a predicate and automatically exit if there is a failure result would be valuable. Not sure if this would be a static method, an extension, or both.

@JohannesMoersch
Copy link
Owner Author

Might making writing a result aware aggregate much easier as well.

@RyanMarcotte
Copy link
Collaborator

@JohannesMoersch
Copy link
Owner Author

The case I had in mind is for a scenario where you want it to loop forever until there is a failure or an exit condition is met, but the case you specified is definitely related and is also worth addressing. It feels like a special case of the loop forever scenario (with an input value for each iteration and an implicit exit condition at the end of the source enumerable).

@JohannesMoersch
Copy link
Owner Author

Closed #26 since these are related.

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