diff options
| author | Kazuo256 | 2016-11-18 18:30:16 -0200 |
|---|---|---|
| committer | Rémi Verschelde | 2017-01-12 19:15:26 +0100 |
| commit | b56c00cc56c1bfbe602619ea11975dde7e44bf35 (patch) | |
| tree | 7816090e8b221f279a2d91762e84b08e7341c2e5 /core/array.h | |
| parent | 13cdc2a6f5b7bc4ab49bee313f5a2207a2448a30 (diff) | |
| download | godot-b56c00cc56c1bfbe602619ea11975dde7e44bf35.tar.gz godot-b56c00cc56c1bfbe602619ea11975dde7e44bf35.tar.zst godot-b56c00cc56c1bfbe602619ea11975dde7e44bf35.zip | |
Add Array.front() and Array.back()
(cherry picked from commit bf4fda64fd403d589278919cff01c3207164207e)
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 dfc902525..1dbf80711 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(); |
