Junior — Senior
Infinite repeating generator
livecode
Task condition
Create and document a generator that takes any iterable object and infinitely yields its elements in order.
Example 1: Input: "abc" Output: "a", "b", "c", "a", "b", ...
Example 2: Input: [0, 1, 2] Output: 0, 1, 2, 0, 1, 2, ...