amaembo / streamex

Enhancing Java Stream API
Apache License 2.0
2.18k stars 249 forks source link

Support for Gatherers #272

Closed anantharaman93 closed 9 months ago

anantharaman93 commented 9 months ago

Hi.

I hope you might be aware of Gatherers feature that was proposed. Reference 1 Reference 2 .

Requesting support for similar functionality in this library.

Thanks.

amaembo commented 9 months ago

Hello!

It doesn't look like a good idea to mimic the API creating essentially a parallel class hierarchy. The concept of my library is to add reasonable operations inside the library itself, rather than providing a Gatherer-like mechanism to be able to extend it. I focus on practical needs, so if you miss a particular operation, feel free to report. Also note that using headTail operation, you can implement quite much of custom intermediate operation functionality without Gatherers.