invokeDynamic

fun invokeDynamic(arguments: List<Value<*>>, allowDestructuring: Boolean = true): OutputValue<*>

Invokes the lambda action with given arguments.

Return

the result of the lambda action, as an undetermined, thus dynamically-typed, value

Parameters

arguments

arguments of the lambda action

allowDestructuring

if true, arguments has only 1 element which is Destructurable, and the lambda has N>1 explicit parameters, the argument is destructured into N parts. For example, a dictionary may be destructured into its key and value.


fun invokeDynamic(vararg arguments: Value<*>): OutputValue<*>

See also