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

Can't call first on collection using withprogress #526

Open
tecosaur opened this issue Jun 9, 2022 · 0 comments
Open

Can't call first on collection using withprogress #526

tecosaur opened this issue Jun 9, 2022 · 0 comments

Comments

@tecosaur
Copy link

tecosaur commented Jun 9, 2022

It can be nice when developing a transducer chain to iteratively prototype it using first instead of the final reducer. This usually works fairly well, e.g.

1:4 |> Map(identity) |> Filter(iseven) |> first

However, the moment I introduce withprogress this stops working.

1:4 |> withprogress |> Map(identity) |> Filter(iseven) |> first
ERROR: MethodError: no method matching iterate(::Transducers.ProgressLoggingFoldable{UnitRange{Int64}})

It would be nice if I didn't have to remember to remove withprogress when prototyping and re-add it when processing the whole collection.

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

1 participant