I have an array of arrays, ie
[[3, 6, 7, 7, 4], [5, 9], [4, 1, 6], [6, 3, 6], [5, 7, 8, 9]]. I am looking to combine these arrays depending on an interval. For example, if interval is 2, I want to combine the first two of these arrays into one array, then the next two arrays into the next array, then the third two arrays into the next, and so forth.
I have been screwing around with
concat and just can't figure out how to accomplish what I'm after. Any assistance is greatly appreciated, thanks in advance!