-
Notifications
You must be signed in to change notification settings - Fork 196
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
[RFC] foldWhile #453
Comments
I found a need for this while writing a family of stochastic gradient descent algorithms; the conduit processes one data point of type |
Seems reasonable to me. Only complaint I can think of: it hides away information about whether it was an end-of-stream versus a foldWhile :: Monad m => (a -> s -> Either e s) -> s -> ConduitT a o m (Either e s) Either with |
Indeed, your version of |
A specialized version of
mapAccumWhile
that keeps folding as long as the function argument returns 'Right'The text was updated successfully, but these errors were encountered: