any method

bool any(
  1. bool predicate(
    1. K key,
    2. V value
    )
)

Returns true if there is at least one entry that matches the given predicate. predicate must not be null.

Implementation

bool any(bool Function(K key, V value) predicate) {
  if (isEmpty()) {
    return false;
  }
  for (final KtMapEntry<K, V> entry in iter) {
    if (predicate(entry.key, entry.value)) {
      return true;
    }
  }
  return false;
}