tests/Haskell/guards.hs
2024-12-10 20:40:17 +01:00

5 lines
105 B
Haskell

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