Function: makeEvenByCycling()
makeEvenByCycling<
T,U>(iterable1,iterable2): [T[],U[]]
Defined in: src/utils/iterables.ts:283
Extend the shorter of two iterables by cycling its values until both have
the same length. Mirrors ManimCE make_even_by_cycling.
Type Parameters
T
T
U
U
Parameters
iterable1
readonly T[]
iterable2
readonly U[]
Returns
[T[], U[]]
Example
makeEvenByCycling([1, 2], [3, 4, 5, 6]); // [[1,2,1,2], [3,4,5,6]]