I know i could do this with a couple of loop but is there any function that can merge multiple arrays into one