docs: correct fn.call argument count docs and list.insert example output
- Fix fn.call documentation to clarify that extra arguments are discarded rather than causing a runtime error - Correct list.insert example output from "[a, e, c, d]" to "[a, e, b, c, d]" to accurately reflect insertion behavior
This commit is contained in:
@@ -38,5 +38,6 @@ Invokes the function with the given arguments.
|
||||
}
|
||||
fn.call("Hello world") // Hello world.
|
||||
|
||||
It is a runtime error if the number of arguments given does not equal the arity
|
||||
of the function.
|
||||
It is a runtime error if the number of arguments given is less than the arity of
|
||||
the function. If more arguments are given than the arity of the function they
|
||||
will be discarded.
|
||||
Reference in New Issue
Block a user