v input view name new tag column name
Tag returns v with an extra name column added to the right. This integer column contains the row numbers, from zero on up.
Example:set v [view {A B} def {a b c d e f}]
view $v tag N
A B N 0 a b 0 1 c d 1 2 e f 2