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/Set/Int/index.html

Module Set.Int

Construct sets of Ints

val empty : t

A set with nothing in it.

val singleton : int -> t

Create a set from a single Int

Examples

Set.Int.singleton 5 |> Set.toList = [5]
val fromArray : int array -> t

Create a set from an Array

Examples

Set.Int.fromArray [|1;2;3;3;2;1;7|] |> Set.toArray = [|1;2;3;7|]
val from_array : int array -> t
val fromList : int list -> t

Create a set from a List

Examples

Set.Int.fromList [1;2;3;3;2;1;7] |> Set.toList = [1;2;3;7]
val from_list : int list -> t