Parcourir la source

exercise 3.5: greaterThan50

George C. Privon il y a 2 ans
Parent
commit
485b0a1212
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      03-typesandentities/exercises/ex3.5.hs

+ 8 - 0
03-typesandentities/exercises/ex3.5.hs

@@ -0,0 +1,8 @@
+-- Exercise 3.5
+-- George C. Privon
+-- 2023-09-05
+
+greaterThan50 :: Integer -> Bool
+greaterThan50 x = if x > 50
+    then True
+    else False