summaryrefslogtreecommitdiff
path: root/transfer/examples/pair.tr
diff options
context:
space:
mode:
Diffstat (limited to 'transfer/examples/pair.tr')
-rw-r--r--transfer/examples/pair.tr11
1 files changed, 0 insertions, 11 deletions
diff --git a/transfer/examples/pair.tr b/transfer/examples/pair.tr
deleted file mode 100644
index 1b70411e8..000000000
--- a/transfer/examples/pair.tr
+++ /dev/null
@@ -1,11 +0,0 @@
-Pair : Type -> Type -> Type
-Pair A B = sig { p1 : A; p2 : B }
-
-pair : (A:Type) -> (B:Type) -> A -> B -> Pair A B
-pair _ _ x y = rec { p1 = x; p2 = y }
-
-fst : (A:Type) -> (B:Type) -> Pair A B -> A
-fst _ _ p = case p of Pair _ _ x _ -> x
-
-snd : (A:Type) -> (B:Type) -> Pair A B -> B
-snd _ _ p = case p of Pair _ _ x _ -> x