invoke

inline fun <T, V : Value<T>> invoke(vararg values: Value<*>): V

Invokes the lambda action with given arguments and converts it to a static type.

Return

the result of the lambda action, as a statically typed value

Parameters

values

arguments of the lambda action

T

unwrapped type to convert the resulting dynamic value to. This type must appear in a FromDynamicType annotation on a ValueFactory method

V

wrapped value type (which wraps T) to convert the resulting dynamic value to