3 ms·
And that works in python to, even if the source type is strings: sum(map(mappingFunction, iterable)) works fine as long as mappingFunction maps the elements
by dragonwriter 7y ago
And that works in python to, even if the source type is strings:
sum(map(mappingFunction, iterable))
works fine as long as mappingFunction maps the elements of an iterable to numbers.