Packrat is a Java library that provides various Gatherer implementations for the Stream API. Gatherers can enhance streams with custom intermediate op

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-05-09 10:00:10

Packrat is a Java library that provides various Gatherer implementations for the Stream API. Gatherers can enhance streams with custom intermediate operations.

filterBy(mapper, value, predicate) - filters mapped elements based on the predicate test against the value, stream continues with original elements

removeBy(mapper, value, predicate) - removes mapped elements based on the predicate test against the value, stream continues with original elements

skipAndMapN(skipN, mapN, mapper) - returns all elements, after skipN elements the first mapN elements are mapped with the supplied mapping function

Leave a Comment