Parcourir la source

Create an custom 'and' opeartor

With pattern matching
DricomDragon il y a 5 ans
Parent
commit
1e4130bab9
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      logic.hs

+ 4 - 0
logic.hs

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