Returns an infinite sequential ordered LongStream produced by iterative application of the provided LongUnaryOperator. The seed is the initial element of the iteration.
Examples
package com.logicbig.example.longstream;
import java.util.stream.LongStream;
public class IterateExample {
public static void main(String... args) { LongStream.iterate(10, (lg) -> lg + 5) .limit(10) .forEach(System.out::println);