mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06:00
Remove more useless pattern matching and variable bindings in transfer compilation.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user