This website works better with JavaScript
Home
Explore
Help
Sign In
CNI
/
HaskellCourse
Watch
3
Star
0
Fork
0
Files
Issues
0
Pull Requests
0
Wiki
Browse Source
Create a simple function to compute a power
DricomDragon
5 years ago
parent
e27b68d87c
commit
111e3c85f2
1 changed files
with
3 additions
and
0 deletions
Split View
Show Diff Stats
3
0
mypower.hs
+ 3
- 0
mypower.hs
View File
@@
-0
,
0
+
1
,
3
@@
+e1 x n =
case
n
of
+
0
->
1
+ _ -> x * e1 x (n -
1
)