is there a FAST way (fast meaning easy on proc) to drop duplicate
values in an array
lets say I have an array
[0, 0, 0, 0, 1, 1, 2, 6, 6, 6, 6, 8, 8 ]
and i want to simply return
[0, 1, 2, 6, 8]
is there a method for this already? i am having to do this with an array
that is LARGE, like a few hundred values.. this is to help me with this problem here...
When I try this with LARGE arrays it is starting to take almost half a second each time... this is a problem since its for a game that has to be fast...
thanks for your help