public operator call(args as Object[]) as ReturnType throws Exception
Direct call operator.
Compiler translates f(args...) to f.invoke([args...]).
| Parameter | Description |
|---|---|
args | Arguments as Object array. |
Result of type ReturnType.
import klyn.reflection
f = eval("def twice(x as Int): return x * 2")
if f is Invocable<Int>:
print(f(21)) # 42