package tablecloth-native
Module Map.Poly
Construct a Map which can be keyed by any data type using the polymorphic compare function.
val empty : unit -> ('key, 'value) tA map with nothing in it.
val singleton : key:'key -> value:'value -> ('key, 'value) tCreate a map from a key and value
Examples
Map.Poly.singleton ~key:false ~value:1 |> Map.toList = [(false, 1)]val fromArray : ('key * 'value) array -> ('key, 'value) tCreate a map from an Array of key-value tuples
val from_array : ('key * 'value) array -> ('key, 'value) tval from_list : ('key * 'value) list -> ('key, 'value) t