Add callable support for find and rfind Array methods

This commit is contained in:
Slashscreen
2024-08-11 23:28:32 -07:00
parent 88f3b5f9d5
commit 89491f4403
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;