public function step($result, $input) { if (call_user_func($this->pred, $input)) { return $this->xf->step($result, $input); } else { return Transducers::reduced($result); } }
public function step($result, $input) { $ret = $this->xf->step($result, $input); if (Transducers::isReduced($ret)) { return Transducers::reduced($ret); } return $ret; }