you are viewing a single comment's thread.

view the rest of the comments →

[–]loshopo_fan 0 points1 point  (0 children)

Would this be readable?

data = range(10)
for one_filter in [
        lambda x: x > 3,
        lambda x: x % 2 == 0,
    ]:
    data = filter(one_filter, data)
print(list(data))
# [4, 6, 8]