Implemented a generic extension method 'IndexOf' for IEnumerable that allows finding the index of the first element matching a given predicate. This method enhances collection handling by providing a flexible way to search for elements based on custom conditions.
Implemented a generic extension method 'IndexOf' for IEnumerable that allows finding the index of the first element matching a given predicate. This method enhances collection handling by providing a flexible way to search for elements based on custom conditions.