Add missing reference documentation for Array class
This commit is contained in:
parent
eefc2bf5f7
commit
baa59c0670
@ -3766,6 +3766,7 @@
|
|||||||
<argument index="0" name="value" type="var">
|
<argument index="0" name="value" type="var">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Append an element at the end of the array (alias of [method push_back]).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="clear">
|
<method name="clear">
|
||||||
@ -3784,6 +3785,7 @@
|
|||||||
<argument index="0" name="value" type="var">
|
<argument index="0" name="value" type="var">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Remove the first occurence of a value from the array.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="find">
|
<method name="find">
|
||||||
@ -3792,6 +3794,7 @@
|
|||||||
<argument index="0" name="value" type="var">
|
<argument index="0" name="value" type="var">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Searches the array for a value and returns its index or -1 if not found.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="hash">
|
<method name="hash">
|
||||||
@ -3812,12 +3815,14 @@
|
|||||||
</method>
|
</method>
|
||||||
<method name="invert">
|
<method name="invert">
|
||||||
<description>
|
<description>
|
||||||
|
Reverse the order of the elements in the array (so first element will now be the last).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_shared">
|
<method name="is_shared">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get whether this is a shared array instance.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="push_back">
|
<method name="push_back">
|
||||||
@ -3850,6 +3855,7 @@
|
|||||||
</method>
|
</method>
|
||||||
<method name="sort">
|
<method name="sort">
|
||||||
<description>
|
<description>
|
||||||
|
Sort the array using natural order.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="sort_custom">
|
<method name="sort_custom">
|
||||||
@ -3858,6 +3864,7 @@
|
|||||||
<argument index="1" name="func" type="String">
|
<argument index="1" name="func" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Sort the array using a custom method. The arguments are an object that holds the method and the name of such method. The custom method receives two arguments (a pair of elements from the array) and must return true if the first argument is less than the second, and return false otherwise.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="Array">
|
<method name="Array">
|
||||||
|
Loading…
Reference in New Issue
Block a user