cycle< T> function
Returns an Iterable that infinitely cycles through the elements of
iterable
. If iterable
is empty, the returned Iterable will also be empty.
Implementation
Iterable<T> cycle<T>(Iterable<T> iterable) => new _Cycle<T>(iterable);