Re: Integrated: 8319123: Implement JEP 461: Stream Gatherers (Preview)

2023-12-01 Thread Svein Otto Solem
Hi, I did some testing where one gatherer (doNothingReturnTrue) does not handle the downStream.push(element) returning false correctly.  The stream processing is terminated in one case and not in the two other.Especially see the difference between output from handling «efgh» and «EFGH» below. Is th

Re: RFR: 8319123: Implement JEP 461: Stream Gatherers (Preview) [v13]

2023-11-27 Thread Svein Otto Solem
nterface Integrator {   .  static NonGreedy of(NonGreedy integrator) { return integrator; } static Greedy ofGreedy(Greedy greedy) { return greedy; } interface Greedy extends Integrator { } interface NonGreedy extends Integrator { }   

RFR: 8319123: Implement JEP 461: Stream Gatherers (Preview) [v13]

2023-11-24 Thread Svein Otto Solem
Tested the Gatherer implementation, and it is a very nice work. I have always wanted a way of writing my own stream operations and also have incomplete composable pipelines which could be combined in different ways. Very interesting. The four Gatherer functions - initializer/integrator/combiner