Function
interfacein packageklyn.reflection
public interface Function<ReturnType> extends Invocable<ReturnType>:
└ Function

Represents an executable function (standalone, closure, or from eval).

Function is a specialized view of Invocable.

import klyn.reflection

f = eval("def fct(a as Int, b as Int): return a + b") as Function<Int>
print(f(10, 20))    # 30
Properties inherited from Invocable: name, parameterCount, returnType
Methods inherited from Invocable: invoke
Operators inherited from Invocable: operator call(args as Object[]) as ReturnType throws Exception