Array Fields and Functions
Arrays have multiple built-in fields and functions that can be used to get information about and manipulate the contents of the array.
The field length
, and the functions concat
, and contains
are available for both variable-sized and fixed-sized or variable-sized arrays.
The number of elements in the array.
Concatenates the parameter array
to the end of the array the function is called on, but does not modify that array.
Both arrays must be the same type T
.
This function creates a new array whose length is the sum of the length of the array the function is called on and the length of the array given as the parameter.
Returns true if the given element of type T
is in the array.
Last updated