Re: foldr in terms of map