cycle
Repeat the items in the list until the new list is of a certain length.
g.cycle([1, 2, 3], 5)
Parameters
l
: The list of items to repeat.length
: The desired length of the list.
Repeat the items in the list until the new list is of a certain length.
g.cycle([1, 2, 3], 5)
l
: The list of items to repeat.length
: The desired length of the list.