# Just found an interesting stuff
x = [[]] * 4 # [[], [], [], []]
x[0] << 1 # or x[0] .push 1
# => [[1], [1], [1], [1]]
x = [[]] * 4 # [[], [], [], []]
# just append an element to the first array of x
update:
x = [[], [], [], []]
x[0] << 1
# => [[1], [], [], []]