Fix fragile pattern-matching.
[cellular-automata.git] / 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.018394 seconds and 4 git commands to generate.