equal
deleted
inserted
replaced
984 * |
984 * |
985 * <p> |
985 * <p> |
986 * {@code DoubleStream.iterate} should produce the same sequence of |
986 * {@code DoubleStream.iterate} should produce the same sequence of |
987 * elements as produced by the corresponding for-loop: |
987 * elements as produced by the corresponding for-loop: |
988 * <pre>{@code |
988 * <pre>{@code |
989 * for (double index=seed; predicate.test(index); index = f.apply(index)) { |
989 * for (double index=seed; predicate.test(index); index = f.applyAsDouble(index)) { |
990 * ... |
990 * ... |
991 * } |
991 * } |
992 * }</pre> |
992 * }</pre> |
993 * |
993 * |
994 * <p> |
994 * <p> |