public static function currify(array $args)
    {
        $curried = [];

        foreach ($args as $key=>$value) {
            if (is_callable($value)) {
                $curried[$key] = new static($value);
                continue;
            }
            $curried[$key] = $value;
        }

        return $curried;
    }
public static function currify(array $args)
    {
        $curried = [];

        foreach ($args as $key=>$value) {
            if (is_callable($value)) {
                $curried[$key] = new static($value);
                continue;
            }
            $curried[$key] = $value;
        }

        return $curried;
    }
public static function currify ( array $ args ) { $ curried = [ ] ; foreach ( $ args as $ key => $ value ) { if ( is_callable ( $ value ) ) { $ curried [ $ key ] = new static ( $ value ) ; continue ; } $ curried [ $ key ] = $ value ; } return $ curried ; }
Replace all callables in an array with lambdas

@param array $args

@return array
Replace all callables in an array with lambdas