Array sort/ size reduction
Hi- in making an XML text "search engine" I've run into a problem which I cannot solve. No matter how much I puzzle over it I am stuck in the same rut. I really need a good hard kick to get me out.
Let me simplify:
With
code:
var aTemp=new Array();
aTemp[0]="A";
aTemp[1]="B";
aTemp[2]="C";
aTemp[3]="A";
aTemp[4]="A";
I would like to get from this another array, with values
code:
aFinal[0]="A"
aFinal[1]="B"
aFinal[2]="C"
I cannot work out how to do it though... Thanks for any hints