public function result($result) { if (count($this->a) > 0) { $result = Transducers::unreduced($this->xf->step($result, $this->a)); $this->a = []; } return $this->xf->result($result); }