v input view w argument view
Isectmap returns a list of all the rows in v which are also in w.
set v [view A def {a b c}] set w [view A def {d a c d e}] view $v isectmap $w 0 2
0 2