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