2 ms·
Your list comprehension is how I would naturally write this, and to me seems the most readable - it's almost like an English language sentence. The sum example
by drcongo 3y ago
Your list comprehension is how I would naturally write this, and to me seems the most readable - it's almost like an English language sentence. The sum example in the article would probably be my second choice.