def find_if(predicate, seq):
 for x in seq:
  if predicate(x):
   return x

def find_if ( predicate , seq ) : for x in seq : if predicate ( x ) : return x
returns the first element in sequence seq satisfying predicate or none if no such element exists .