Prefer foldr to foldl'