Module TableclothMap.String
Construct a Map with Strings for keys.
type t
type nonrec 'value t = 'value Of(TableclothString).t
val empty
val empty : 'value t
A map with nothing in it.
val singleton
val singleton : key:string -> value:'value -> 'value t
Create a map from a key and value
Examples
Map.String.singleton ~key:"Ant" ~value:1 |> Map.toList = [("Ant", 1)]
val fromArray
val fromArray : (string * 'value) array -> 'value t
Create a map from an Array of key-value tuples
val from_array
val from_array : (string * 'value) array -> 'value t
val fromList
val fromList : (string * 'value) list -> 'value t
Create a map from a List of key-value tuples
val from_list
val from_list : (string * 'value) list -> 'value t