diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-11 12:29:33 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-11 12:29:33 -0300 |
commit | 0bda0fcb3e8985fe613b696761ab5f211316faf7 (patch) | |
tree | 359747451ac186ecd81a98cbf509945fcd594d0d /doc/base/classes.xml | |
parent | f5aadad7ae58d2eec06e7b6fff29a9ca2d035063 (diff) | |
parent | 6ce5876c63ffd7bc21b38197c4fa89713a77ceb5 (diff) |
Merge pull request #5148 from vnen/pr-array-find
Add Array.find(what, from) and Array.rfind(what, from)
Diffstat (limited to 'doc/base/classes.xml')
-rw-r--r-- | doc/base/classes.xml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index b74ac1c144..b72f082afa 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -4390,10 +4390,12 @@ <method name="find"> <return type="int"> </return> - <argument index="0" name="value" type="var"> + <argument index="0" name="what" type="var"> + </argument> + <argument index="1" name="from" type="int" default="0"> </argument> <description> - Searches the array for a value and returns its index or -1 if not found. + Searches the array for a value and returns its index or -1 if not found. Optionally, the initial search index can be passed. </description> </method> <method name="find_last"> @@ -4471,6 +4473,15 @@ Resize the array to contain a different number of elements. If the array size is smaller, elements are cleared, if bigger, new elements are Null. </description> </method> + <method name="rfind"> + <argument index="0" name="what" type="var"> + </argument> + <argument index="1" name="from" type="int"> + </argument> + <description> + Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array. + </description> + </method> <method name="size"> <return type="int"> </return> |