Function any
Source pub fn any<I, T, F>(iter: I, predicate: F) -> bool
Expand description
Checks if any element in an iterable satisfies a predicate
§Arguments
iter
- Iterable of values
predicate
- Function to check each value
§Returns
true
if any element satisfies the predicate, false
otherwise