package tablecloth-native
Module Set.String
Construct sets of Strings
type nonrec t = Of(Tablecloth__.TableclothString).tval empty : tA set with nothing in it.
val singleton : string -> tval fromArray : string array -> tCreate a set from an Array
Examples
Set.String.fromArray [|"a";"b";"g";"b";"g";"a";"a"|] |> Set.toArray = [|"a";"b";"g"|]val from_array : string array -> tval fromList : string list -> tCreate a set from a List
Examples
Set.String.fromList [|"a";"b";"g";"b";"g";"a";"a"|] |> Set.toList = ["a";"b";"g"]val from_list : string list -> t