From 949d1c88ee5df62985ffd56e851544e4713334eb Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Thu, 26 Sep 2013 21:54:03 -0400 Subject: [PATCH] Remove unneeded operation: set --- polymorphic-life/001/src/polymorphic_life.ml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/polymorphic-life/001/src/polymorphic_life.ml b/polymorphic-life/001/src/polymorphic_life.ml index c28852a..544136c 100644 --- a/polymorphic-life/001/src/polymorphic_life.ml +++ b/polymorphic-life/001/src/polymorphic_life.ml @@ -8,8 +8,6 @@ module type MATRIX = sig val get : 'a t -> row:int -> col:int -> 'a - val set : 'a t -> row:int -> col:int -> data:'a -> unit - val map : 'a t -> f:('a -> 'b) -> 'b t val mapi : 'a t -> f:(row:int -> col:int -> data:'a -> 'b) -> 'b t @@ -55,9 +53,6 @@ module Matrix : MATRIX = struct let get t ~row ~col = t.(row).(col) - - let set t ~row ~col ~data = - t.(row).(col) <- data end -- 2.20.1