Re:Examples of Incorrect Abstractions in Other Languages
by kragen on Wednesday May 20, 2020 @05:19AM
(#23244852)
Python sum() can handle summing up other data structures, although, as with foldl, you may have to give it an initial accumulator argument:
However, that doesn't work for strings; there's a special-case check for that.
[ Parent
| on HN ]
There are no comments on this comment yet.