INNER CODE UNIT · Dart
and
Ephenodrom/Dart-Basic-Utils · lib/src/BooleanUtils.dart:19
static bool and(final List<bool> array) {
for (final element in array) {
if (!element) {
return false;
}
}
return true;
}
/// Performs an 'or' operation on a set of booleans.
///
/// BooleanUtils.or(true, true) = true
/// BooleanUtils.or(false, false) = false
/// BooleanUtils.or(true, false) = true
/// BooleanUtils.or(true, true, false) = true
/// BooleanUtils.or(true, true, true) = true
/// BooleanUtils.or(false, false, false) = false
static bool or(final List<bool> array) {