public operator ()(args as Object[]) as ReturnType throws Exception
Operator call - enables f(args) syntax.
| Parameter | Description |
|---|---|
args | Arguments packaged as Object[]. |
Result cast to ReturnType.
import klyn.reflection
f = eval("""def square(x as Int) as Int:
return x * x
""") as Invocable<Int>
print(f(9)) # 81