What's the most idiomatic way of writing a filter
with a negation?
Example:
is_even= lambda x : x % 2 == 0
odd_numbers= filter( lambda x: not is_even(x), range(10) )
Of course, you can just use list comprehensions - but then you needn't use filter
anyway
In case anyone wonders, I've stumbled upon this while trying to split a list based on a condition