def all(xs): if not xs: return True else: x = head(xs) if not x: return False return and_(x, all(tail(xs)))
def all(xs): return foldr(lambda x, ys: and_(x, ys), True, xs)