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