From 54b8d70443f2b41691339376677f50c7e5f62fca Mon Sep 17 00:00:00 2001 From: bringert Date: Tue, 6 Dec 2005 12:39:11 +0000 Subject: Transfer: moved pair stuff to prelude. Added partition function. --- transfer/lib/pair.tr | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 transfer/lib/pair.tr (limited to 'transfer/lib/pair.tr') diff --git a/transfer/lib/pair.tr b/transfer/lib/pair.tr deleted file mode 100644 index a4956abdd..000000000 --- a/transfer/lib/pair.tr +++ /dev/null @@ -1,21 +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 - -{- - - syntax: - - (x1,...,xn) => { p1 = e1; ... ; pn = en } - - where n >= 2 and x1,...,xn are expressions or patterns - --} \ No newline at end of file -- cgit v1.2.3