Closed
Description
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.