11 ms·
I didn't like list comprehensions when I first encountered them, but after getting accustomed to them, I now strongly prefer to write and read a comprehension o
by RyanMcGreal 15y ago
I didn't like list comprehensions when I first encountered them, but after getting accustomed to them, I now strongly prefer to write and read a comprehension over a for-in loop.
- ironchef 15y agoI agree, but it depends on how complex the operation within the comprehension is.