code: def project_events(self, initial_state, domain_events):
          
          return reduce(self._mutator_func or self.mutate, domain_events, initial_state)
docs: Evolves initial state using the sequence of domain events and a mutator function.