This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
array [2022/11/06 00:48] – justin | array [2024/02/17 10:19] – justin | ||
---|---|---|---|
Line 53: | Line 53: | ||
|pop_back()|Removes and returns the last value of an array.| | |pop_back()|Removes and returns the last value of an array.| | ||
|insert(index, | |insert(index, | ||
- | |remove(index)|Remove | + | |remove(index)|Removes |
+ | |erase(value)|Removes the first occurrence of the specified value from an array.| | ||
|clear()|Removes all values from an array.| | |clear()|Removes all values from an array.| | ||
|size()|Returns the number of items in an array.| | |size()|Returns the number of items in an array.| | ||
Line 72: | Line 73: | ||
<code bauxite> | <code bauxite> | ||
$my_array.insert(1, | $my_array.insert(1, | ||
+ | </ | ||
+ | <code bauxite> | ||
+ | $my_array.remove(2); | ||
+ | </ | ||
+ | <code bauxite> | ||
+ | $my_array.erase(entity[" | ||
</ | </ | ||
<code bauxite> | <code bauxite> |