def strlist_intersection(a, b):
 temp = cidict()
 for elt in a:
  temp[elt] = elt
 result = [temp[elt] for elt in b if temp.has_key(elt)]
 return result

def strlist_intersection ( a , b ) : temp = cidict ( ) for elt in a : temp [ elt ] = elt result = [ temp [ elt ] for elt in b if temp . has_key ( elt ) ] return result
return intersection of two lists of case-insensitive strings a .