News for hackers. Stuff that matters.
Re:Teeing, a hidden gem in the Java API by nine_k on Monday May 10, 2021 @02:45PM (#27109389)
What. Python's `sum()` works on anything that defines `__add__`, which can be numbers, strings, lists, or your own custom classes.

  sum([[1, 2], [3, 4]], []) == [1, 2, 3, 4]
Re:Teeing, a hidden gem in the Java API by nitroll on Tuesday May 11, 2021 @11:03AM (#27118918)
Actually it seems sum is special cased to fail for strings, but otherwise you are correct