I
ilr
Hi
This is probably fairly simple but I am newish at programming and was
wondering if someone can give me some advice on handling the following.
I have an array with a large number of elements in it. 0-9 are related
data, 10-19, 20-29 are related and so on. What is the best way of extracting
groups of elements from the array into another array where each element is
the related data or to extract say elements 0,1,5 from the first group,
10,11,15 from the second etc.
I have tried iterating through the array with if then statements but for a
large array this gets messy.
Any advice would be greatly appreciated.
Regards
Ian
This is probably fairly simple but I am newish at programming and was
wondering if someone can give me some advice on handling the following.
I have an array with a large number of elements in it. 0-9 are related
data, 10-19, 20-29 are related and so on. What is the best way of extracting
groups of elements from the array into another array where each element is
the related data or to extract say elements 0,1,5 from the first group,
10,11,15 from the second etc.
I have tried iterating through the array with if then statements but for a
large array this gets messy.
Any advice would be greatly appreciated.
Regards
Ian