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
Implement lesson example of guarded evaluation
DricomDragon
5 years ago
parent
b6fae2771b
commit
09a3e8a526
1 changed files
with
6 additions
and
0 deletions
Split View
Show Diff Stats
6
0
guard.hs
+ 6
- 0
guard.hs
View File
@@
-0
,
0
+
1
,
6
@@
+
-- Slide 10/78
+
+sign n
+ | n <
0
=
-1
+ | n >
0
=
1
+ | otherwise =
0