blob: efce3fc469a09b0759d6e9f353c7c81912114165 [file]
package flatMapping;
import one.util.streamex.EntryStream;
import one.util.streamex.StreamEx;
public class FlatMapValues {
public static void main(String[] args) {
// Breakpoint!
final long count = EntryStream.of(1, 1, 2, 4, 3, 9).flatMapValues(v -> StreamEx.of(v, v + 1)).count();
System.out.println(count);
}
}