package tablecloth-base

  1. Overview
  2. Docs

Module Map.StringSource

Construct a Map with Strings for keys.

Sourcetype nonrec 'value t = 'value Of(Tablecloth__.TableclothString).t
Sourceval empty : 'value t

A map with nothing in it.

Sourceval 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)]
Sourceval from_array : (string * 'value) array -> 'value t

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

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

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