package tablecloth-base

  1. Overview
  2. Docs

This functor lets you describe the type of Maps a little more concisely.

let string_to_int : int Map.Of(String).t =
  Map.from_list (module String) [("Apple", 2); ("Pear", 0)]

Is the same as

let string_to_int : (string, int, String.identity) Map.t =
  Map.from_list (module String) [("Apple", 2); ("Pear", 0)]

Parameters

module M : sig ... end

Signature

type nonrec 'value t = (M.t, 'value, M.identity) t
OCaml

Innovation. Community. Security.