klyn.reflection.EvalFunctionWrapper.operator call
method

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

Description

Operator call - enables f(args) syntax.

Parameters

Parameter | Description
--- | ---
`args` | Arguments packaged as `Object[]`.

Returns

Result cast to `ReturnType`.

Throws

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

Example

    import klyn.reflection

    f = eval("""def square(x as Int) as Int:
    return x * x""") as Function<Int>
    print(f([9]))    # 81