If I have a 2d array such as
smallArray = [[1,0],[0,1]]
and I have a larger 2d array such as
largeArray = [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]
What would be the most efficient way to "tile" the smaller array in the bigger one so that the bigger array would end up looking like
largeArray = [[1,0,1,0],[0,1,0,1],[1,0,1,0],[0,1,0,1]]
A complicated sequence of for loops?