#NEWLINE# def get_list_indices( in_list , get_indices_of ) : #NEWLINE# #INDENT# lookup = dict ( zip ( in_list , range ( len ( in_list ) ) ) ) #NEWLINE# indices = map ( lookup . get , get_indices_of ) #NEWLINE# indices = filter ( None , indices ) #NEWLINE# return indices