fmap(), "inverse" of Python map() function

Ian Kelly ian.g.kelly at gmail.com
Fri Oct 5 19:24:14 EDT 2012


On Fri, Oct 5, 2012 at 4:52 PM, Devin Jeanpierre <jeanpierreda at gmail.com> wrote:
> On Fri, Oct 5, 2012 at 5:31 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
>> On Fri, Oct 5, 2012 at 2:19 PM, vasudevram <vasudevram at gmail.com> wrote:
>>>
>>> http://jugad2.blogspot.in/2012/10/fmap-inverse-of-python-map-function.html
>>
>> Your fmap is a special case of reduce.
>
> So is map.

I realize that.  My point is that the function *feels* more like a
variant of reduce than of map.

> If it's meant as a complaint, it's a poor one.

It's not.



More information about the Python-list mailing list