3.19 Filter out elements from a list that do not satisfy a predicate