Added 'Haskell/guards.hs'
This commit is contained in:
parent
26c04dd6d4
commit
69b82199cc
4
Haskell/guards.hs
Normal file
4
Haskell/guards.hs
Normal file
@ -0,0 +1,4 @@
|
||||
f x
|
||||
| x < 10 = print "This is a"
|
||||
| x > 10 = print "very poor"
|
||||
| otherwise = print "example."
|
Loading…
x
Reference in New Issue
Block a user