Why don't DoubleStream or LongStream have similar methods as these ones (which exist in IntStream):
public static IntStream range(int startInclusive, int endExclusive);
public static IntStream rangeClosed(int startInclusive, int endInclusive);
Is there any particular reason?
LongStreamdoes haverangeandrangeClosed.iterate,takeWhile, and/orlimitfor a simple counting loop. There’s a clean and efficient alternative.for(double d = 0; d < 1; d += 0.1) { }does eleven iterations instead of ten.