Unique-func
This function takes a vector vs and returns the unique values. You can decide whether to sort the unique output values and how to reduce the duplicated values.
Dataset or StringArray Unique(vector<string> vs[, int Sort, int Occurrence])
vs
Sort
Occurrence
Returns a vector of the unique values in vs.
newbook; col(A) = {1,10,15,8,2}; col(B) = unique(col(A));
StringArray sa; sa = unique(col(a)); // assign unique values in col(a) to stringArray sa, sort in ascending order range bb=col(b); sa.CopyTo(bb); // copy contents of stringArray sa to col(b)