From 69b82199ccc988695ab4f467c470e2ce32f90427 Mon Sep 17 00:00:00 2001 From: anon Date: Tue, 10 Dec 2024 20:39:01 +0100 Subject: [PATCH] Added 'Haskell/guards.hs' --- Haskell/guards.hs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Haskell/guards.hs diff --git a/Haskell/guards.hs b/Haskell/guards.hs new file mode 100644 index 0000000..a26d938 --- /dev/null +++ b/Haskell/guards.hs @@ -0,0 +1,4 @@ +f x + | x < 10 = print "This is a" + | x > 10 = print "very poor" + | otherwise = print "example."