Guest User

Untitled

a guest
Jul 24th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.27 KB | None | 0 0
  1. module type Sequential =
  2.   sig
  3.     type t
  4.     type u
  5.     val get : t -> int -> u
  6.     val set : t -> int -> u -> unit
  7.   end;;
  8.  
  9. module ArraySeqFloat : Sequential =
  10.   struct
  11.     type u = float
  12.     type t = u array
  13.     let get = Array.get
  14.     let set = Array.set
  15.   end;;
Add Comment
Please, Sign In to add comment