pipe but right-to-left — matches mathematical function-composition reading order.
Like pipe() but threads the value through callables right-to-left — the last callable is applied first.
/**
* @param mixed $value
* @param callable(mixed):mixed ...$callables
* @return mixed
*/
GeneralFunctions\pipeR($value, callable ...$callables)This can be used to create a simple closure which can be used as a regular function.
// Equivalent to strtoupper(trim(' foo '))
echo GeneralFunctions\pipeR(' foo ', 'strtoupper', 'trim'); // 'FOO'