summaryrefslogtreecommitdiff
path: root/transfer/lib/array.tra
diff options
context:
space:
mode:
Diffstat (limited to 'transfer/lib/array.tra')
-rw-r--r--transfer/lib/array.tra9
1 files changed, 0 insertions, 9 deletions
diff --git a/transfer/lib/array.tra b/transfer/lib/array.tra
deleted file mode 100644
index e91fe35e7..000000000
--- a/transfer/lib/array.tra
+++ /dev/null
@@ -1,9 +0,0 @@
-import nat
-
-data Array : Type -> Nat -> Type where
- Empty : (A:Type) -> Array A Zero
- Cell : (A:Type) -> (n:Nat) -> A -> Array A n -> Array A (Succ n)
-
-mapA : (A:Type) -> (B:Type) -> (n:Nat) -> (A -> B) -> Array A n -> Array B n
-mapA A B _ f (Empty _) = Empty B
-mapA A B (Succ n) f (Cell _ _ x xs) = Cell B n (f x) (mapA A B n f xs)