Exists2
Tests if any pair of corresponding elements of the collections satisfies the given predicate
.
If any application returns true then the overall result is true and no further elements are tested. Otherwise, false is returned.
WARNING
This function causes
IEnumerable<T>
evaluation.
Parameters
Returns
Func<T, T, bool> predicate
IEnumerable<T> source1
IEnumerable<T> source2
bool
Usage
Checking for the existence of a even and an odd number in any pair of the two collections
Last updated
Was this helpful?