https://samirpaul.in/posts/form-array-by-concatenating-subarrays-of-another-array/
Form Array by Concatenating Subarrays of Another Array