-
Notifications
You must be signed in to change notification settings - Fork 51
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
Support for early termination #85
Comments
No, this library does not support any way for the |
There is an interesting systematic attempt at this in https:/effectfully/prefolds One simple-minded point in defense of the |
@michaelt Thanks for the info. That's interesting. I was thinking of something simpler like I guess I'll see if I can support it without sacrificing the simple API and good performance. |
@Gabriel439 could you please elaborate on the decision of not including early termination in Foldl? Are you aware of any structures similar to Foldable that support termination in reducing functions? |
@rizo: I'm not aware of a similar structure that supports (A) early termination and (B) The main reason why |
Is there a good way to support early termination in the foldl library? Currently
fold
has to go though the list until the end even ifhead
is passed.The text was updated successfully, but these errors were encountered: