I have a list comprehension which approximates to:
[f(x) for x in l if f(x)]
Where l is a list and f(x) is an expensive function which retu
Here is my solution:
filter(None, [f(x) for x in l])