[system] Repository:
ViewVC logotype

Revision 3525

Jump to revision: Previous Next
Author: dpvc
Date: Sun Aug 14 00:23:10 2005 UTC (14 years, 3 months ago)
Log Message:
Added methods for testing containment of one set in another, and so
on.  These include:

     $A->contains($B)        Test if $B is a subset of $A (or an
                             element of $A if $B$ is a real number).

     $A->isSubsetOf($B)      Test if $A is a subset of $B.

     $A->isEmpty             True if $A is the empty set.

     $A->intersects($B)      True if $A and $B have numbers in common.

     $A->intersect($B)       The set of numbers common to both $A and $B.

Be careful of the difference between "intersect" and "intersects".
One is a set the other a true/false value.

Changed paths:

Path Details
Directorytrunk/pg/lib/Value/Interval.pm modified , text changed
Directorytrunk/pg/lib/Value/Set.pm modified , text changed
Directorytrunk/pg/lib/Value/Union.pm modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9