2006-10-20 11:52:29

Operations on ordered sets

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Intersection(a, b) -> ordered-set

Return the intersection of the two sets as a new set (i.e., all the elements that are in both sets).
a, b

Not(a, b) -> ordered-set

Return the difference of the two sets as a new set (i.e., all the elements from set a that are not in set b).
a, b

Union(a, b) -> ordered-set

Return the union of the two sets as a new set (i.e., all the elements that are in either set).
a, b

Unique(a) -> ordered-set

Return a new set with any duplicates removed.
a