mirror of
https://git.tesses.org/tesses50/crosslangextras.git
synced 2026-06-01 18:35:32 +00:00
Work with slim instead
This commit is contained in:
12
Tesses.CrossLang.Std/src/FuncWithThis.tcross
Normal file
12
Tesses.CrossLang.Std/src/FuncWithThis.tcross
Normal file
@@ -0,0 +1,12 @@
|
||||
func FuncWithThis(
|
||||
function,
|
||||
thisVal
|
||||
)
|
||||
{
|
||||
return ($$args)=>{
|
||||
const newArgs = [thisVal];
|
||||
each(var item : args) newArgs.Add(item);
|
||||
|
||||
return function.Call(newArgs);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user