瀏覽代碼

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
+