Pass the predicate set into the merge function