Release v0.5.0
What's Changed
- Implement
reverse()
- Cause a stream to be emitted in reverse (stores entire stream in memory) - Implement
maxBy(fn)
andminBy(fn)
- Finds the single maximum or minimum value in a stream as defined by thefunction
given (stores entire stream in memory) - Implement
exactSize(n)
- Ensures a stream is preciselyn
elements long or throws anIllegalStateException
(stores entire stream in memory)
Using in Maven
<dependency>
<groupId>com.ginsberg</groupId>
<artifactId>gatherers4j</artifactId>
<version>0.5.0</version>
</dependency>
Using in Gradle
implementation("com.ginsberg:gatherers4j:0.5.0")