package tablecloth-native
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
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/Poly/index.html
Module Set.Poly
Construct sets which can hold any data type using the polymorphic compare function.
val empty : unit -> 'a tThe empty set.
A great starting point.
val singleton : 'a -> 'a tCreate a set of a single value
Examples
Set.Int.singleton (5, "Emu") |> Set.toList = [(5, "Emu")]val fromArray : 'a array -> 'a tCreate a set from an Array
Examples
Set.Poly.fromArray [(1, "Ant");(2, "Bat");(2, "Bat")] |> Set.toList = [(1, "Ant"); (2, "Bat")]val from_array : 'a array -> 'a tval fromList : 'a list -> 'a tCreate a set from a List
Examples
Set.Poly.fromList [(1, "Ant");(2, "Bat");(2, "Bat")] |> Set.toList = [(1, "Ant"); (2, "Bat")]val from_list : 'a list -> 'a t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>