Fix fragile pattern-matching.
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 27 Sep 2013 01:19:03 +0000 (21:19 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 27 Sep 2013 01:19:03 +0000 (21:19 -0400)
polymorphic-life/001/src/polymorphic_life.ml

index 7b55572..4a28992 100644 (file)
@@ -97,7 +97,8 @@ module Conway : CELL = struct
     | A when live_neighbors < 4 -> A
     | A when live_neighbors > 3 -> D
     | D when live_neighbors = 3 -> A
-    | t -> t
+    | A -> A
+    | D -> D
 end
 
 
This page took 0.025113 seconds and 4 git commands to generate.