some<T> static method

bool some<T>(
  1. Iterable<T> list,
  2. bool predicate(
    1. T
    )
)

Returns true when at least one element of list passes predicate.

Implementation

static bool some<T>(Iterable<T> list, bool Function(T) predicate) =>
    list.any(predicate);