This website works better with JavaScript
Home
Esplora
Aiuto
Accedi
CNI
/
HaskellCourse
Segui
3
Vota
0
Forka
0
File
Problemi
0
Pull Requests
0
Wiki
Sfoglia il codice sorgente
Implement lesson example of guarded evaluation
DricomDragon
5 anni fa
parent
b6fae2771b
commit
09a3e8a526
1 ha cambiato i file
con
6 aggiunte
e
0 eliminazioni
Visualizzazione separata
Mostra Diff Stats
6
0
guard.hs
+ 6
- 0
guard.hs
Vedi File
@@ -0,0 +1,6 @@
+-- Slide 10/78
+
+sign n
+ | n < 0 = -1
+ | n > 0 = 1
+ | otherwise = 0