package reason-standard

  1. Overview
  2. Docs

Construct a Map with Strings for keys.

type nonrec 'value t = (string, 'value, Standard__.Core.String.identity) 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 ofArray : (string * 'value) array -> 'value t

Create a map from an Array of key-value tuples

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

Create a map from a List of key-value tuples

OCaml

Innovation. Community. Security.