Преглед изворни кода

Create data Nat

Handle an integer with Peano arithmetic
DricomDragon пре 5 година
родитељ
комит
e1135c8da8
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      peano.hs

+ 2 - 0
peano.hs

@@ -0,0 +1,2 @@
+data Nat = Zero | Succ Nat
+