Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Map.Poly
Construct a Map which can be keyed by any data type using the polymorphic compare
function.
val empty : unit -> ('key, 'value) t
A map with nothing in it.
val singleton : key:'key -> value:'value -> ('key, 'value) t
Create a map from a key and value
Examples
Map.Poly.singleton ~key:false ~value:1 |> Map.toList = [(false, 1)]