[−][src]Function tract_nnef::prelude::tract_itertools::any
pub fn any<I, F>(iterable: I, f: F) -> bool where
F: FnMut(<I as IntoIterator>::Item) -> bool,
I: IntoIterator,
Test whether the predicate holds for any elements in the iterable.
IntoIterator
enabled version of i.any(f)
use itertools::any; assert!(any(&[0, -1, 2], |elt| *elt > 0));