Appendix D
The ordset Module
An ordered set is represented as a sorted list that does not contain duplicates. The ordset module provides useful utility functions and predicates on ordered sets. This module must be imported before use.
- delete(, ) = : This function returns a copy of that does not contain the element .
- disjoint(, ): This predicate is true when and have no element in common.
- insert(, ) = : This function returns a copy of with the element inserted.
- intersection(, ) = : This function returns an ordered set that contains elements which are in both and .
- new_ordset() = : This function returns an ordered set that contains the elements of .
- ordset(): This predicate is true if is an ordered set.
- subset(, ): This predicate is true if is a subset of .
- subtract(, ) = : This function returns an ordered set that contains all of the elements of which are not in .
- union(, ) = : This function returns an ordered set that contains all of the elements which are present in either or .