forked from amkovkov/GranuSightSoftware2
feat: EnumerableExtensions All and Any IEnumerable<bool> extensions
This commit is contained in:
@@ -26,5 +26,7 @@ public static class EnumerableExtensions
|
||||
return string.Join(separator, strs.Select(s => $"{new string(' ', indent)}{s}"));
|
||||
}
|
||||
|
||||
public static bool All(this IEnumerable<bool> values) => values.All(v => v);
|
||||
public static bool Any(this IEnumerable<bool> values) => values.Any(v => v);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user