Set
structure
signature SET
structure Set
:> SET
A structure of sets and operations on them. The sets are finite and homogeneous, i.e. all its elements have the same type. The implementation is based on lists and too simple to be used for big sets.
type 'a t
val empty : 'a t
val add : ''a -> ''a t -> ''a t
val Union : ''a t list -> ''a t
val difference : ''a t -> ''a t -> ''a t
val drop : ''a -> ''a t -> ''a t
val equal : ''a t -> ''a t -> bool
val intersects : ''a t -> ''a t -> bool
val list : 'a t -> 'a list
val map : ('a -> ''b) -> 'a t -> ''b t
val member : ''a -> ''a t -> bool
val mk : ''a list -> ''a t
val select : 'a t -> ('a -> bool) -> 'a t
val size : 'a t -> int
val singleton : 'a -> 'a t
val subset : ''a t -> ''a t -> bool
val union : ''a t -> ''a t -> ''a t
type 'a t
empty
add e s
Union l
difference s1 s2
drop e s
equal s1 s2
intersects s1 s2
list s
map f s
member e s
mk l
select s f
size s
singleton e
subset s1 s2
union s1 s2