0
functools.reduce function vs map function what is the difference
3 Answers
+ 8
HonFu By any chance one of them was supposed to be reduce?
+ 3
Map applies a function on every item of an iterable.
Map applies a function on *pairs* of items in an iterable, always returning only one, until only a final value is left.
So... totally different thing. đ
+ 2
Lord Krishna, now that you say it, the name does seem to suggest that. ;-)