Function: makeEven()
makeEven<
T,U>(iterable1,iterable2): [T[],U[]]
Defined in: src/utils/iterables.ts:142
Extend the shorter of two iterables with duplicate values until both have
the same length (favours earlier elements). Mirrors ManimCE make_even.
Type Parameters
T
T
U
U
Parameters
iterable1
readonly T[]
iterable2
readonly U[]
Returns
[T[], U[]]
Example
makeEven([1, 2], [3, 4, 5, 6]); // [[1,1,2,2], [3,4,5,6]]