Merge pull request #95449 from SlashScreen/array_functions

Add callable support for `find` and `rfind` `Array` methods
This commit is contained in:
Rémi Verschelde
2024-09-20 16:06:13 +02:00
5 changed files with 125 additions and 1 deletions

View File

@@ -152,7 +152,9 @@ public:
void reverse();
int find(const Variant &p_value, int p_from = 0) const;
int find_custom(const Callable &p_callable, int p_from = 0) const;
int rfind(const Variant &p_value, int p_from = -1) const;
int rfind_custom(const Callable &p_callable, int p_from = -1) const;
int count(const Variant &p_value) const;
bool has(const Variant &p_value) const;