Explorar o código

Create an custom 'and' opeartor

With pattern matching
DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
1e4130bab9
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      logic.hs

+ 4 - 0
logic.hs

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