about summary refs log tree commit diff
path: root/universe/ac_types/prelude.py
diff options
context:
space:
mode:
Diffstat (limited to 'universe/ac_types/prelude.py')
-rw-r--r--universe/ac_types/prelude.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/universe/ac_types/prelude.py b/universe/ac_types/prelude.py
deleted file mode 100644
index 21a809288fd8..000000000000
--- a/universe/ac_types/prelude.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from test_utils import simple_assert
-
-
-def pipe(x, fns):
-    """Apply `x` to the first function in `fns` and then use its output as the
-    input for the next function in the list."""
-    result = x
-    for f in fns:
-        result = f(result)
-    return result
-
-
-actual = pipe(10, [
-    lambda x: x + 3,
-    lambda x: x - 1,
-    lambda x: x * 2,
-])
-expected = (((10 + 3) - 1) * 2)
-simple_assert(actual, expected, name="pipe")