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