🧵I am happy to announce that I have just released v0.8.0 of Gatherers4j, a library of Stream Gatherers (intermediate operations) for #java 23+.
Please let me know what you think, especially if you have ideas for new gatherers.
https://github.com/tginsberg/gatherers4j/releases/tag/v0.8.01/
Please let me know what you think, especially if you have ideas for new gatherers.
https://github.com/tginsberg/gatherers4j/releases/tag/v0.8.01/
Comments
- everyNth(), to emit every nth element from the stream
- uniquelyOccurring(), to emit stream elements that occur a single time
- intersperse(), to put the given element between each element of the stream
- foldIndexed(), perform a fold along with the index of each element
- scanIndexed(), perform a scan along with the index of each element
- takeUntil(), take from a stream until a predicate is met, including the first element that matches the predicate-
cross(iterable), cross(iterator), and cross(stream) to combine elements in the input stream with the given source of elements
/end