package tablecloth-base

  1. Overview
  2. Docs

Construct a Map with Strings for keys.

type nonrec 'value t = 'value Of(Tablecloth__.TableclothString).t
val empty : 'value t

A map with nothing in it.

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.to_list = [("Ant", 1)]
val from_array : (string * 'value) array -> 'value t

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

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

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

OCaml

Innovation. Community. Security.