blob: 62f3eba548bac86e7d4144da0249190d7a1987f8 [file]
package flatMapping;
import one.util.streamex.LongStreamEx;
import one.util.streamex.StreamEx;
public class FlatMapToObj {
public static void main(String[] args) {
// Breakpoint!
final long count = LongStreamEx.of(1, 2, 3).flatMapToObj(x -> StreamEx.of(x, x + 1)).count();
System.out.println(count);
}
}