blob: 8cd0bfb0c33e77be5efbbff60ba1b3bb47bfd04e [file]
package partialReduction;
import one.util.streamex.StreamEx;
public class IntervalMap {
public static void main(String[] args) {
// Breakpoint!
StreamEx.of(1, 2, 4, 6, 7, 9, 10).intervalMap((l, r) -> l % 2 == r % 2, (l, r) -> l + r).forEach(System.out::println);
}
}