If patt [ i ] is found in ' um ' , check if it has the minimum index or not accordingly update 'minIndex
' NEW_LINE INDENT if ( patt [ i ] in um and um [ patt [ i ] ] < minIndex ) : NEW_LINE INDENT minIndex = um [ patt [ i ] ] NEW_LINE DEDENT DEDENT