tests/Misc./guards.hs
2024-03-10 16:02:52 +01:00

5 lines
105 B
Haskell

f x
| x < 10 = print "This is a"
| x > 10 = print "very poor"
| otherwise = print "example."