Add sort and has methods to PackedArrays

This commit is contained in:
Aaron Franke
2020-02-20 23:19:00 -05:00
parent 141ce4d1f9
commit af80bcd2f8
14 changed files with 460 additions and 11 deletions

View File

@@ -45,6 +45,15 @@
Returns [code]true[/code] if the array is empty.
</description>
</method>
<method name="has">
<return type="bool">
</return>
<argument index="0" name="value" type="int">
</argument>
<description>
Returns [code]true[/code] if the array contains [code]value[/code].
</description>
</method>
<method name="insert">
<return type="int">
</return>
@@ -108,6 +117,13 @@
Returns the array size.
</description>
</method>
<method name="sort">
<return type="void">
</return>
<description>
Sorts the elements of the array in ascending order.
</description>
</method>
</methods>
<constants>
</constants>