Does anyone know how I can have and manipulate an array with lots of data, similar to the below representation:
1,6
2,7
3,8
4,9
5,10
So in the above, it's showing a width of 5 and a height of 2. Imagine the height going on for 50. Also, imagine that I want each element to have a depth of 3.
See, lots of data.
Now, just using the example, say I want to completely remove the number 3 from the array, and have the number 4 move up 1 element, and the number 5 do the same. Do I need to do this manually, or is there a smart way of manipulating an array in this fashion? As I said, it's going to be a big array with lots of depth elements as well. I'd rather not have to require a manual movement.
I want the array to recognise when an area of itself is now empty and have its remaining elements move up the array to fill in the blanks. Keep deleting, and you eventually end up with an empty array.
By the same token, if the array was empty, if you put something in the bottom, it'll quickly make its way up to the top.
Hope I've made sense...