oneArgFunction

inline fun oneArgFunction(requiresSelf: Boolean = false, crossinline fn: State.(Value) -> Value): OneShotFunction

Creates a OneShotFunction with one argument.

Return

The created function.

Parameters

requiresSelf

Whether the function requires a self argument.

fn

The function to execute.

See also