aboutsummaryrefslogtreecommitdiff
path: root/src/util/array.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/array.py')
-rw-r--r--src/util/array.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/util/array.py b/src/util/array.py
deleted file mode 100644
index bb4eee3..0000000
--- a/src/util/array.py
+++ /dev/null
@@ -1,5 +0,0 @@
-def insert_position(x, xs, is_reversed: bool) -> int:
- for i, y in enumerate(xs):
- if is_reversed and x >= y or not is_reversed and x <= y:
- return i
- return len(xs)