(value: A, next: (value: A) => A)
| 1665 | * @since 2.0.0 |
| 1666 | */ |
| 1667 | export const iterate = <A>(value: A, next: (value: A) => A): Stream<A> => |
| 1668 | unfold(value, (a) => Effect.succeed([a, next(a)])) |
| 1669 | |
| 1670 | /** |
| 1671 | * Constructs a stream from a range of integers, including both endpoints. |