I am pretty sure there is a common idiom, but I couldn\'t find it with Google Search...
Here is what I want to do (in Java):
allTrue = all(map(predicate, iterable)) anyTrue = any(map(predicate, iterable))