equal
deleted
inserted
replaced
725 * be the provided {@code seed}. For {@code n > 0}, the element at position |
725 * be the provided {@code seed}. For {@code n > 0}, the element at position |
726 * {@code n}, will be the result of applying the function {@code f} to the |
726 * {@code n}, will be the result of applying the function {@code f} to the |
727 * element at position {@code n - 1}. |
727 * element at position {@code n - 1}. |
728 * |
728 * |
729 * @param seed the initial element |
729 * @param seed the initial element |
730 * @param f a function to be applied to to the previous element to produce |
730 * @param f a function to be applied to the previous element to produce |
731 * a new element |
731 * a new element |
732 * @return a new sequential {@code LongStream} |
732 * @return a new sequential {@code LongStream} |
733 */ |
733 */ |
734 public static LongStream iterate(final long seed, final LongUnaryOperator f) { |
734 public static LongStream iterate(final long seed, final LongUnaryOperator f) { |
735 Objects.requireNonNull(f); |
735 Objects.requireNonNull(f); |