some<T> function

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

判断集合中的元素是否存在

Implementation

bool some<T>(Iterable<T> list, bool Function(T) call) {
  return find<T>(list, call) != null;
}