Hello, some help needed.
I have array:
height9
width3
depth1
populated in this manner
abc,0,0
abc,1,0
abc,1,2
xyz,0,0
xyz,3,0
xyz,4,5
ggg,0,0
ggg,3,0
xxx,4,5
how do i loop through it so that i get only one of a kind from X:0 ?
so that end result in this case would look like this:
abc,xyz,ggg,xxx
Develop games in your browser. Powerful, performant & highly capable.
You could use a dictionary. Loop through the array and add the X:0 value to the dictionary, as the key. You'll end up with 4 keys/emtries, in this case.
blackhornet
Super idea.... im on it!