What's Changed
- Add support for
orElse()
andorElseEmpty()
on size-based gatherers to provide a non-exceptional output stream - Implement
everyNth()
to get everyn
th element from the stream - Implement
uniquelyOccurring()
to emit stream elements that occur a single time - Implement
takeUntil()
to take from a stream until a predicate is met, including the first element that matches the predicate - Implement
foldIndexed()
to perform a fold along with the index of each element - Implement
scanIndexed()
to perform a scan along with the index of each element - Implement
intersperse()
to put the given element between each element of the stream - Implement
cross(iterable)
,cross(iterator)
, andcross(stream)
to combine elements in the input stream with the given source of elements
Using in Maven
<dependency>
<groupId>com.ginsberg</groupId>
<artifactId>gatherers4j</artifactId>
<version>0.8.0</version>
</dependency>
Using in Gradle
implementation("com.ginsberg:gatherers4j:0.8.0")