Add Array.front() and Array.back()

(cherry picked from commit bf4fda64fd)
This commit is contained in:
Kazuo256
2016-11-18 18:30:16 -02:00
committed by Rémi Verschelde
parent 13cdc2a6f5
commit b56c00cc56
4 changed files with 31 additions and 0 deletions

View File

@@ -4640,6 +4640,20 @@
Remove the first occurrence of a value from the array.
</description>
</method>
<method name="front">
<return type="Variant">
</return>
<description>
Returns the first element of the array if the array is not empty (size>0).
</description>
</method>
<method name="back">
<return type="Variant">
</return>
<description>
Returns the last element of the array if the array is not empty (size>0).
</description>
</method>
<method name="find">
<return type="int">
</return>