package tablecloth-native

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

Create a map from an Array of key-value tuples

val from_array : (string * 'value) array -> 'value t
val fromList : (string * 'value) list -> 'value t

Create a map from a List of key-value tuples

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

Innovation. Community. Security.