for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sergiors\Functional;
const compose = '\Sergiors\Functional\compose';
/**
* @author Sérgio Rafael Siqueira <[email protected]>
*
* Performs right-to-left function composition.
* The rightmost function may have any arity; the remaining functions must be unary.
* @return mixed
*/
function compose(/* ...$args */)
{
$args = func_get_args();
return call_user_func_array('\Sergiors\Functional\pipe', array_reverse($args));
}