Application Programming InterfaceΒΆ

The part package is designed to maintain subsets of sorted spaces.

It defines several classes.

For atomic values:

  • TotallyOrdered which represents totally ordered type;

  • TO which represents a generic totally ordered type;

  • Atomic which represents any convex subset of a totally ordered space;

  • Empty which represents the empty subset. There is only one instance of this class;

  • Interval which represents a non-empty subset of a totally ordered space. There is a special instance representing the whole space;

For set classes:

For dictionary classes:

It also defines one constant:

  • INFINITY to hold the infinity value. (-INFINITY is also a valid expression);