cycle<T> function

Iterable<T> cycle<T>(
  1. Iterable<T> iterable
)

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) => _Cycle<T>(iterable);