There is no equivalent option of lsearch which filters as "if {$element} {return $index}", but it would be nice.