Apply Predicate-Based Function