diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-06-04 16:07:48 +0200 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-06-04 16:07:48 +0200 |
commit | 4b0bae97998dc337c0ca3cfb84332fe2d06d3433 (patch) | |
tree | 01b985e9b4d0065b023c8e1b38dee18053292c06 /doc/base | |
parent | 992a76b41a59de8aad28cf6bce918e7d17970e4e (diff) | |
parent | 5f5ca8cd9b323e3a89940afd5df09099f83d1473 (diff) |
Merge pull request #5027 from J08nY/gdscript
Add Array.find_last() and Array.count()
Diffstat (limited to 'doc/base')
-rw-r--r-- | doc/base/classes.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index e5804cb9ea..7dee3c6267 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -4340,6 +4340,15 @@ Clear the array (resize to 0). </description> </method> + <method name="count"> + <return type="int"> + </return> + <argument index="0" name="value" type="var"> + </argument> + <description> + Return the amount of times an element is in the array. + </description> + </method> <method name="empty"> <return type="bool"> </return> @@ -4363,6 +4372,15 @@ Searches the array for a value and returns its index or -1 if not found. </description> </method> + <method name="find_last"> + <return type="int"> + </return> + <argument index="0" name="value" type="var"> + </argument> + <description> + Searches the array in reverse order for a value and returns its index or -1 if not found. + </description> + </method> <method name="hash"> <return type="int"> </return> |