def wrap_filters(filters):
 def combined_filter(x):
  for filt in filters:
   if (not filt(x)):
    return False
  return True
 return combined_filter

def wrap_filters ( filters ) : def combined_filter ( x ) : for filt in filters : if ( not filt ( x ) ) : return False return True return combined_filter
returns a single filter that short-circuit ands the specified filters .