func FuncWithThis(
    function,
    thisVal
)
{
    return ($$args)=>{
        const newArgs = [thisVal];
        each(var item : args) newArgs.Add(item);

        return function.Call(newArgs);
    };
}