Arrays¶
Built-in Array methods¶
arr_len()
orlen(arr)
- returns the length of the arrayarr_push(array, item)
- adds an item to the end of the arrayarr_pop(array, index)
- removes an item from the end of the arrayarr_append(array, item)
- adds an item to the end of the arrayarr_extend(array1, array2)
- adds all the items of an array to the end of the arrayarr_find(array, index)
- returns the item at the specified indexarr_slice(array, start, end)
- returns the items from the specified start index to the specified end index
Array operators¶
+
(concatenation)*
(repetition)
operators.rn | |
---|---|
Array standard library¶
map(func)
- returns a new array with the result of calling the specified function on each item of the arrayappend(item)
- adds an item to the end of the arraypop(index)
- removes an item from the end of the arrayextend(list)
- adds all the items of an array to the end of the arrayfind(index)
- returns the item at the specified indexslice(start, end)
- returns the items from the specified start index to the specified end indexlen()
- returns the length of the arrayis_empty()
- returnstrue
if the array is empty, otherwisefalse
to_string()
- returns the string representation of the arrayis_array()
- returnstrue
if the value is an array, otherwisefalse