def select_with_processing(selector, cluster_sim):
    """A selection wrapper that uses the given operator to select from 
    the union of the population and the currently processing individuals.
    """
    def select(population):
        return selector(population + cluster_sim.processing)
    return select