diff options
author | George Marques <george@gmarqu.es> | 2016-11-22 08:08:59 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-22 08:08:59 -0200 |
commit | a692b7a1c1c2f2e836d5c235d1b55288535dca84 (patch) | |
tree | 112f69fecacc1112d9c6d6dfc0a126ac4bf1167e /core/array.h | |
parent | 830ab4ea8da61708deb681034e66a70f847dadf1 (diff) | |
parent | bf4fda64fd403d589278919cff01c3207164207e (diff) |
Merge pull request #7149 from Kazuo256/array-last
Add Array.front() and Array.back()
Diffstat (limited to 'core/array.h')
-rw-r--r-- | core/array.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/array.h b/core/array.h index eb79b0cf33..fb417b6ec0 100644 --- a/core/array.h +++ b/core/array.h @@ -67,6 +67,9 @@ public: void insert(int p_pos, const Variant& p_value); void remove(int p_pos); + Variant front() const; + Variant back() const; + void sort(); void sort_custom(Object *p_obj,const StringName& p_function); void invert(); |