changeset 26318 | 967323f93c67 |
parent 25731 | b3e415b0cf5c |
26317:01a98fd72eae | 26318:967323f93c67 |
---|---|
1 module Classes where { |
1 module Classes where { |
2 |
2 |
3 |
3 |
4 data Nat = Suc Nat | Zero_nat; |
4 data Nat = Suc Nat | Zero_nat; |
5 |
|
6 data Bit = B1 | B0; |
|
7 |
5 |
8 nat_aux :: Integer -> Nat -> Nat; |
6 nat_aux :: Integer -> Nat -> Nat; |
9 nat_aux i n = (if i <= 0 then n else nat_aux (i - 1) (Suc n)); |
7 nat_aux i n = (if i <= 0 then n else nat_aux (i - 1) (Suc n)); |
10 |
8 |
11 nat :: Integer -> Nat; |
9 nat :: Integer -> Nat; |