Returns one or more values from a list (...), or the number of values in a list
See also Lua library functions.
Signature:
... = select(index, ...) or select("#", ...)
Arguments:
index- Index of a value in the list (number)#- The string"#"(string)...- A list of values (list)
Returns:
...- If called with a first argument of"#", the number of values in the list; otherwise, all values in the list starting with the value at positionindex(list)
This function is defined in the Lua standard libraries