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