From e8017e0bcc0be2ef128bcea187f6528ed0a3d197 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 20 Jun 2024 10:45:53 -0700 Subject: auto-fill pull compensation (#2891) --- lib/utils/list.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/utils/list.py') 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) -- cgit v1.2.3