This website works better with JavaScript
Inicio
Explorar
Axuda
Iniciar sesión
CNI
/
HaskellCourse
Seguir
3
Destacar
0
Fork
0
Ficheiros
Incidencias
0
Pull Requests
0
Wiki
Explorar o código
Implement lesson example of guarded evaluation
DricomDragon
%!s(int64=5) %!d(string=hai) anos
pai
b6fae2771b
achega
09a3e8a526
Modificáronse 1 ficheiros
con
6 adicións
e
0 borrados
Dividir vista
Mostrar estatísticas de Diff
6
0
guard.hs
+ 6
- 0
guard.hs
Ver ficheiro
@@ -0,0 +1,6 @@
+-- Slide 10/78
+
+sign n
+ | n < 0 = -1
+ | n > 0 = 1
+ | otherwise = 0