def _foldr(f, z, xs):
 return reduce((lambda x, y: f(y, x)), reversed(xs), z)

def _foldr ( f , z , xs ) : return reduce ( ( lambda x , y : f ( y , x ) ) , reversed ( xs ) , z )
apply a function of two arguments cumulatively to the items of a sequence .