3 ms·
That's Ruby, if I'm not mistaken. In Python you'd do filter(lambda e: e.isFoo, items)
by steve-howard 15y ago
That's Ruby, if I'm not mistaken. In Python you'd do
filter(lambda e: e.isFoo, items)
- andreasvc 15y agoIt's more Pythonic to write [e for e in items if e.isFoo]