Set: Difference between revisions
m
→{{header|Perl 6}}: Use more appropriate tests; not affected by hash randomizaton
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: Use more appropriate tests; not affected by hash randomizaton) |
|||
Line 3,528:
nok 'd' ∈ $a, "d is not an element in set A";
is-deeply $a ∪ $b, set(<a b c d>), "union; a set of all elements either in set A or in set B";
is-deeply $a ∩ $b, set(<b c>), "intersection; a set of all elements in both set A and set B";
is $a (-) $b, set(<a>), "difference; a set of all elements in set A, except those in set B";
|