Module StringOf.StringOfMap
StringOfMap is a submodule functor that, given a module M that is implemented using Map.Make, will create a module capable of converting instances of M to string form
Parameters
M : Stdlib.Map.S
Signature
type key= M.keyThe type of
M's keys
type 'a t= 'a M.tThe type of
M's values
val string_of_map : (key -> string) -> ('a -> string) -> 'a t -> stringstring_of_mapreturns the givenM.tas astring- parameter string_of_key
The function used to turn each key of the
M.tto astring
- parameter string_of_val
The function used to turn each value of the
M.tto astring
- parameter tbl
The map to convert to a
string
- returns
The given
M.tas astring
val string_of_map_exp : (key -> string) -> ('a -> string) -> 'a t -> stringstring_of_map_expreturns the givenM.tas astringin expanded form- parameter string_of_key
The function used to turn each key of the
M.tto astring
- parameter string_of_val
The function used to turn each value of the
M.tto astring
- parameter tbl
The map to convert to a
string
- returns
The given
M.tas astringin expanded form