package reason-standard

  1. Overview
  2. Docs

Construct a Map with Ints for keys.

type nonrec 'value t = (int, 'value, Standard__.Core.Int.identity) t
val empty : 'value t

A map with nothing in it.

val singleton : key:int -> value:'value -> 'value t

Create a map from a key and value

Examples

Map.Int.singleton ~key:1 ~value:"Ant" |> Map.toList = [(1, "Ant")]
val ofArray : (int * 'value) array -> 'value t

Create a map from an Array of key-value tuples

val ofList : (int * 'value) list -> 'value t

Create a map of a List of key-value tuples