Re: [External] : Re: Update on JEP-461: Stream Gatherers (Preview)

2023-10-30 Thread Tyler Kindy
t from the Stream. Cheers, √ Viktor Klang Software Architect, Java Platform Group Oracle From: Tyler Kindy Sent: Monday, 30 October 2023 12:14 To: Viktor Klang Cc: core-libs-dev@openjdk.org Subject: [External] : Re: Update on JEP-461: Stream Gatherers (Preview)    Thanks

Re: Update on JEP-461: Stream Gatherers (Preview)

2023-10-30 Thread Tyler Kindy
Thanks for the JEP and your talk, Viktor! I think `Stream::gather` will be super useful in my day-to-day as a Java developer.I’m curious why `fold` is being implemented with gatherers. I recognize `Gatherer` is designed to support intermediate operations, but `fold` feels inherently like a termin