intent: what is a quick way to delete all elements from a list that do not satisfy a constraint?
rewritten_intent: delete all elements from a list `x` if a function `fn` taking value as parameter returns `0`
snippet: [x for x in lst if fn(x) != 0]