Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Set.Poly
Construct sets which can hold any data type using the polymorphic compare
function.
val empty : unit -> 'a t
The empty set.
A great starting point.
val singleton : 'a -> 'a t
Create a set of a single value
Examples
Set.Int.singleton (5, "Emu") |> Set.toList = [(5, "Emu")]