one Arg Function
inline fun oneArgFunction(requiresSelf: Boolean = false, crossinline fn: State.(Value) -> Value): OneShotFunction
Creates a OneShotFunction with one argument.
Return
The created function.
Parameters
requires Self
Whether the function requires a self
argument.
fn
The function to execute.