소스 검색

Create a simple function to compute a power

DricomDragon 5 년 전
부모
커밋
111e3c85f2
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      mypower.hs

+ 3 - 0
mypower.hs

@@ -0,0 +1,3 @@
+e1 x n = case n of
+	0 -> 1
+	_ -> x * e1 x (n - 1)