Creates a Closure that invokes a bound callable with whatever arguments you pass to the Closure. Useful as a value-level representation of calling something.
/**
* @param callable(mixed):mixed $fn
* @return Closure(mixed ...):mixed
*/
GeneralFunctions\invoker(callable $fn): ClosureThis can be used to create a simple closure which can be used as a regular function.
$trim = GeneralFunctions\invoker('trim');
echo $trim(' foo '); // 'foo'