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