Source

hack-and-slash / vec.mli

Full commit
open Core.Std

module Export : sig
  type _vec = { x: int; y : int }
  val vec : int -> int -> _vec
end

type t = Export._vec with sexp, bin_io

val add : t -> t -> t
val manhattan_distance : t -> t -> int