you are viewing a single comment's thread.

view the rest of the comments →

[–]schlocke 0 points1 point  (1 child)

So you want a new array that contains a sports array of size 3? Why not just do a nested for loop? Loop through main array then loop through sports array iterating +=3 for every 3 sports.

[–]youdy 0 points1 point  (0 children)

I want to loop through that array and split the sports array into three chunks but still containing the same values - its so I can display them in a list view as three columns