Ver Fonte

Create an custom 'and' opeartor

With pattern matching
DricomDragon há 5 anos atrás
pai
commit
1e4130bab9
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      logic.hs

+ 4 - 0
logic.hs

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