$reducer = compose(
filter(function($x) { return $x % 2; }),
map(function($x) { return $x - 2; }),
map(function($x) { return $x * 2; })
);
$step = step(unbound_method_closure(Vector::class, 'append'));
var_dump(transduce($reducer, $step, [3, 4, 5, 6, 7], new Vector));