Remove more useless pattern matching and variable bindings in transfer compilation.

This commit is contained in:
bringert
2005-11-30 12:04:21 +00:00
parent afffb0367b
commit f2e0c40f5b
2 changed files with 82 additions and 47 deletions

View File

@@ -14,9 +14,5 @@ natToInt : Nat -> Int
natToInt Zero = 0
natToInt (Succ n) = 1 + natToInt n
plus : Nat -> Nat -> Nat
plus Zero y = y
plus (Succ x) y = Succ (plus x y)
intToNat : Int -> Nat
intToNat n = if n == 0 then Zero else Succ (intToNat (n-1))