summaryrefslogtreecommitdiff
path: root/core/variant/array.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-06 20:44:01 +0200
committerGitHub <noreply@github.com>2021-05-06 20:44:01 +0200
commit01f80201bf6a7a3f3d0de420f18c8f68363dbe62 (patch)
tree56e4e98f6b31d109e6404e898f8c6ba3396a34d4 /core/variant/array.h
parentee4ef9709dcd03c17f5d7ee19c75ad29cd14cb44 (diff)
parentc50acc7339162eac734b20344c6422b740b978ab (diff)
Merge pull request #38645 from KoBeWi/FMR
Add filter, map and reduce to Array
Diffstat (limited to 'core/variant/array.h')
-rw-r--r--core/variant/array.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/variant/array.h b/core/variant/array.h
index 5ce977ee4b..540dcb1f4e 100644
--- a/core/variant/array.h
+++ b/core/variant/array.h
@@ -101,6 +101,9 @@ public:
Array duplicate(bool p_deep = false) const;
Array slice(int p_begin, int p_end, int p_step = 1, bool p_deep = false) const;
+ Array filter(const Callable &p_callable) const;
+ Array map(const Callable &p_callable) const;
+ Variant reduce(const Callable &p_callable, const Variant &p_accum) const;
bool operator<(const Array &p_array) const;
bool operator<=(const Array &p_array) const;