TIL: `sum` function in #Python takes an optional start param. This effectively allows us to add up a sequence of any type, like a list of Vectors.
Among other things, it can be used (in an unoptimised way) to flatten lists!
sum([[1, 2], [3, 4]], start=[]) == [1, 2, 3, 4]
20.04.2025 08:06
👍 3
🔁 0
💬 0
📌 0