This website requires JavaScript.
Explore
Help
Sign In
rgleichman
/
glance
Watch
1
Star
1
Fork
0
You've already forked glance
mirror of
https://github.com/rgleichman/glance.git
synced
2024-08-17 19:00:31 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
4a4fd9728a
glance
/
examples
/
fact.hs
6 lines
105 B
Haskell
Raw
Normal View
History
Unescape
Escape
Add top level type signitures.
2016-12-16 11:47:48 +03:00
factorial
::
(
Num
t
,
Eq
t
)
=>
t
->
t
Add fact.hs
2016-05-29 07:49:48 +03:00
factorial
x
=
if
x
==
0
then
1
else
x
*
factorial
(
x
-
1
)
Reference in New Issue
Copy Permalink