summaryrefslogtreecommitdiff
path: root/lib/utils/list.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2024-06-20 10:45:53 -0700
committerGitHub <noreply@github.com>2024-06-20 19:45:53 +0200
commite8017e0bcc0be2ef128bcea187f6528ed0a3d197 (patch)
tree8196bb69d5ce4fee839056f24abe181fd773afb3 /lib/utils/list.py
parentc017cae01aa33a876795ec5da1438e8ec0f11fc5 (diff)
auto-fill pull compensation (#2891)
Diffstat (limited to 'lib/utils/list.py')
-rw-r--r--lib/utils/list.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/utils/list.py b/lib/utils/list.py
index efa3969e..e5838b5a 100644
--- a/lib/utils/list.py
+++ b/lib/utils/list.py
@@ -21,3 +21,7 @@ def poprandom(sequence, rng=_rng):
sequence[index] = last_item
return item
+
+
+def is_all_zeroes(sequence):
+ return all(item == 0 for item in sequence)