You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could, but I'm actually looking at going the other way in terms of the functional api, and removing the often-superfluous index values and providing a _with_index version of functions that changed (eg map and map_with_index) - find_match_with_index could work too, or just find_match_index that just returns the index.
At present - unless you're on a very big collection - the likely anonymous function declaration each time find is used will be more expensive than the O(N) search for table.index_of to get the index.
It would be nice if the
find
family of functions also gave the index into the table.The text was updated successfully, but these errors were encountered: