package tablecloth-native

  1. Overview
  2. Docs
Native OCaml library implementing Tablecloth, a cross-platform standard library for OCaml and Rescript

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.0.8.tar.gz
md5=0c71dd4035d6fa4978baabc3c932dba3
sha512=44ba09f1ff43e61403703cc244e91e0f8062bd9da998f031430d701a4de148b02878f7f881303f6ded261176f21926ab5ba00a313510ed8e2d2f252b3fd00054

doc/tablecloth-native/Tablecloth/Map/Int/index.html

Module Map.Int

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

Create a map from an Array of key-value tuples

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

Create a map of a List of key-value tuples

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