#NEWLINE# def already_done( self , input_sequence ) : #NEWLINE# #INDENT# return ( len ( reduce ( ( lambda left , new : ( ( left & new ) if ( not ( left is None ) ) else new ) ) , ( input_sequence . element2id [ elem ] for elem in input_sequence ) ) ) != 0 )