RE: foldr in terms of map