package tablecloth-native

  1. Overview
  2. Docs

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

module M : sig ... end

Signature

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

Innovation. Community. Security.