Ahem
result = (f(x) for x in input)
result = [x for x in result if x]
No point in having that extra list around wasting memory!
Ahem
result = (f(x) for x in input)
result = [x for x in result if x]
No point in having that extra list around wasting memory!