Just wondering, whats the fastest or most efficient way to spread one array into another (of different lengths if possible)
So, say, Im given the values [1, 2]... Id want them to be spread into the array [0, 0, 0] or [0, 0, 0, 0] to come back as [1, 2, 0], [1, 2, 0, 0] etc
Another edge case would be like.... pushing [1, 2, 3, 4] into [0, 0, 0], where the set array is locked to a 3 length set of zeros, so the output array would be [1, 2, 3]