fmap(), "inverse" of Python map() function
Ian Kelly
ian.g.kelly at gmail.com
Fri Oct 5 17:31:35 EDT 2012
More information about the Python-list mailing list
Fri Oct 5 17:31:35 EDT 2012
- Previous message (by thread): fmap(), "inverse" of Python map() function
- Next message (by thread): fmap(), "inverse" of Python map() function
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. def fmap(functions, argument): return reduce(lambda result, func: func(result), functions, argument)
- Previous message (by thread): fmap(), "inverse" of Python map() function
- Next message (by thread): fmap(), "inverse" of Python map() function
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list