
oset.pl -- Ordered set manipulation
This library defines set operations on sets represented as ordered lists. This current library is a thin wrapper around library(ordsets). Many of the implementations of library(ordsets) originate from the library.
oset_is(@OSet)- check that OSet in correct format (standard order)
oset_union(+OSet1, +OSet2, -Union)- Union is the union of OSet1 and OSet2.
oset_int(+OSet1, +OSet2, -Int)- ordered set intersection
oset_diff(+InOSet, +NotInOSet, -Diff)- Ordered set difference
oset_dunion(+SetofSets, -DUnion)- Distributed union.
oset_dint(+SetofSets, -DInt)- Distributed intersection.
oset_power(+Set, -PSet)- True when PSet is the powerset of Set. That is, Pset is a set of all subsets of Set, where each subset is a proper ordered set.
oset_addel(+Set, +El, -Add)- Ordered set element addition.
oset_delel(+Set, +El, -Del)- Ordered set element deletion.