create a list containing elements from list `list` that are predicate to function `f`,[f(x) for x in list]