فهرست منبع

Create an custom 'and' opeartor

With pattern matching
DricomDragon 5 سال پیش
والد
کامیت
1e4130bab9
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      logic.hs

+ 4 - 0
logic.hs

@@ -0,0 +1,4 @@
+myAnd b1 b2 = 
+	case (b1, b2) of
+	(True, True) -> True
+	(_, _) -> False