Let say I have an array:
string[] s = GetArray();
and method:
public bool CheckIfInArray() { .. }
I want to pass each value of that array in to the method and get a bool result as soon as there are any first matching (after first matching there no reason to loop to the last element of array ).
Kind of like this:
s.ContainsAtLeasFirstMatching(x => CheckIfInArray(x))
I don't want to use loops. Is it possible to achieve this with LINQ?