klyn.reflection.EvalFunctionWrapper.operator call
method

    public operator call(args as Object[]) as ReturnType throws Exception:

Description

Operator call - enables f(args) syntax.

Parameters

- args Arguments packaged as `Object[]`.

Returns

Result cast to `ReturnType`. ```klyn import klyn.reflection f = eval("""def square(x as Int) as Int: return x * x""") as Function<Int> print(f([9])) # 81` ``

Throws

- Exception if argument binding fails or the invoked constructor, method, or function throws an exception.