This website works better with JavaScript
Accueil
Explorer
Aide
Connexion
CNI
/
HaskellCourse
Suivre
3
Voter
0
Fork
0
Fichiers
Tickets
0
Pull Requests
0
Wiki
Parcourir la source
Implement lesson example of guarded evaluation
DricomDragon
il y a 5 ans
Parent
b6fae2771b
commit
09a3e8a526
1 fichiers modifiés
avec
6 ajouts
et
0 suppressions
Vue séparée
Afficher les stats Diff
6
0
guard.hs
+ 6
- 0
guard.hs
Voir le fichier
@@ -0,0 +1,6 @@
+-- Slide 10/78
+
+sign n
+ | n < 0 = -1
+ | n > 0 = 1
+ | otherwise = 0