Module TableclothMap.Of
This functor lets you describe the type of Maps a little more concisely.
let stringToInt : int Map.Of(String).t =
Map.fromList (module String) [("Apple", 2); ("Pear", 0)]
Is the same as
let stringToInt : (string, int, String.identity) Map.t =
Map.fromList (module String) [("Apple", 2); ("Pear", 0)]
Parameters
argument 1 M
module M : TableclothComparator.S
Signature
type t
type nonrec 'value t = ( M.t, 'value, M.identity ) t