浏览代码

exercise 3.3: isXorY

George C. Privon 2 年之前
父节点
当前提交
82b7a0e804
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      03-typesandentities/exercises/ex3.3.hs

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

@@ -0,0 +1,8 @@
+-- Exercise 3.3
+-- George C. Privon
+-- 2023-09-05
+
+isXorY :: Char -> Bool
+isXorY x = if x == 'X' || x == 'Y'
+    then True
+    else False