Is there any lambda-based approach which will allow one to find the index of (the first) occurrence of an element in an array based on custom logic?
I know I can find the element itself using Array.First
but can I find the index of that element without manually iterating the array?