package tablecloth-base
Module Set.PolySource
Construct sets which can hold any data type using the polymorphic compare function.
Create a set of a single value
Examples
Set.Poly.singleton 5 "Emu" |> Set.to_list = [(5, "Emu")]Create a set from an Array
Examples
Set.Poly.from_array [|(1, "Ant");(2, "Bat");(2, "Bat")|] |> Set.to_list = [(1, "Ant"); (2, "Bat")]