aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGeorge Marques2016-11-22 08:08:59 -0200
committerGitHub2016-11-22 08:08:59 -0200
commita692b7a1c1c2f2e836d5c235d1b55288535dca84 (patch)
tree112f69fecacc1112d9c6d6dfc0a126ac4bf1167e /doc
parent830ab4ea8da61708deb681034e66a70f847dadf1 (diff)
parentbf4fda64fd403d589278919cff01c3207164207e (diff)
downloadgodot-a692b7a1c1c2f2e836d5c235d1b55288535dca84.tar.gz
godot-a692b7a1c1c2f2e836d5c235d1b55288535dca84.tar.zst
godot-a692b7a1c1c2f2e836d5c235d1b55288535dca84.zip
Merge pull request #7149 from Kazuo256/array-last
Add Array.front() and Array.back()
Diffstat (limited to 'doc')
-rw-r--r--doc/base/classes.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index edd1eca92..07e2f719f 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -4656,6 +4656,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>