how to do this
function foo(x:*, ...args):* {
}
function bar(x:*, ...args):* {
foo(x, args); // how to expand args ? the args is an array now
}
how to expand args ? when I call bar(1,2,3), I wish it call foo(1,2,3), but it call foo(1,[2,3])
If
fooandbarare declared in the same class<scope>should bethis, otherwise it should be the instance of the class declaringfooand iffoois a global function it should benull