(value: A, next: (value: A) => A)
| 1538 | * @since 2.0.0 |
| 1539 | */ |
| 1540 | export const iterate = <A>(value: A, next: (value: A) => A): Stream<A> => |
| 1541 | unfold(value, (a) => Effect.succeed([a, next(a)])) |
| 1542 | |
| 1543 | /** |
| 1544 | * Constructs a stream from a range of integers, including both endpoints. |