v input view
Uniquemap returns a column with the row numbers of those rows in v which would remain after all duplicate rows are dropped.
set v [view A def {1 2 3 2 4 3}] view $v uniquemap 0 1 2 4
0 1 2 4