ListOps: Second iteration, using foldr and foldl' for all other list ops