4 ms·
Passing the first argument as part of the variadic array isn't necessary. Here's my version in only 66 bytes, what do I win? ;) <?php function pipe($v,...$p
by zowanet 5y ago
Passing the first argument as part of the variadic array isn't necessary.
Here's my version in only 66 bytes, what do I win? ;)
<?php function pipe($v,...$p){foreach($p as$f)$v=$f($v);return$v;}