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 groupMapReduce to Iterator #11819

Open
sim642 opened this issue Dec 3, 2019 · 0 comments
Open

Add groupMapReduce to Iterator #11819

sim642 opened this issue Dec 3, 2019 · 0 comments

Comments

@sim642
Copy link

@sim642 sim642 commented Dec 3, 2019

Currently groupMapReduce is defined in IterableOps so it's not available for Iterator, but it easily could be because it doesn't require building an inner collection of the collection type, unlike groupBy and groupMap. Thus groupMapReduce would be hoisted to IterableOnceOps instead and be a consuming operation on the iterator.

I suppose the current workaround would be to use to(LazyList) on an iterator and use groupMapReduce on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.