Define cell signature.
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 25 Sep 2013 20:28:21 +0000 (16:28 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 25 Sep 2013 20:28:21 +0000 (16:28 -0400)
polymorphic-life/001/src/polymorphic_life.ml

index a667bc4..ca6d819 100644 (file)
@@ -47,6 +47,15 @@ module Matrix : MATRIX = struct
 end
 
 
+module type CELL = sig
+  type t
+
+  val state : t -> int
+
+  val react : t -> states:int list -> t
+end
+
+
 let main () =
   let pool = Matrix.create ~rows:5 ~cols:5 ~data:() in
   Matrix.iter pool ~f:(
This page took 0.022122 seconds and 4 git commands to generate.