Returns a Stream that infinitely yields elements of the Iterable parameter.
Type of items in the iterable.
Iterable to cycle.
Stream that yields elements of the iterable infinitely.
const result = cycle<number>([1, 2, 3]);console.log(result); // [1, 2, 3, 1, 2, 3, ...] Copy
const result = cycle<number>([1, 2, 3]);console.log(result); // [1, 2, 3, 1, 2, 3, ...]
Returns a Stream that infinitely yields elements of the Iterable parameter.