collection/some library

Functions

some<T>(Iterable<T> collection, bool predicate(T value, int index, Iterable<T> collection)) bool
Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate returns truthy. The predicate is invoked with three arguments: (value, index|key, collection).