package tablecloth-base

  1. Overview
  2. Docs

Construct a Map with Ints for keys.

type nonrec 'value t = 'value Of(Tablecloth__.TableclothInt).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.to_list = [(1, "Ant")]
val from_array : (int * 'value) array -> 'value t

Create a map from an Array of key-value tuples.

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

Create a map of a List of key-value tuples.

OCaml

Innovation. Community. Security.