Esempio n. 1
0
 public static function into($empty, $xf, $coll)
 {
     $f = function ($fileResource, $x) {
         fputs($fileResource, $x);
         return $fileResource;
     };
     return Transducers::transduce($xf, $f, $empty, $coll);
 }
Esempio n. 2
0
 public static function into($empty, $xf, $coll)
 {
     $f = function ($str, $x) {
         $str .= $x;
         return $str;
     };
     return Transducers::transduce($xf, $f, $empty, $coll);
 }