blob: 65a919fcf40b9b3d0130ea18424a3cd0268e23a8 [file]
package flatMapping;
import one.util.streamex.DoubleStreamEx;
import one.util.streamex.IntStreamEx;
public class FlatMapToDouble {
public static void main(String[] args) {
// Breakpoint!
final long count = IntStreamEx.of(1, 2, 3).flatMapToDouble(x -> DoubleStreamEx.of(x, x, x)).count();
System.out.println(count);
}
}