mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Add Array.front() and Array.back()
(cherry picked from commit bf4fda64fd)
This commit is contained in:
committed by
Rémi Verschelde
parent
13cdc2a6f5
commit
b56c00cc56
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user