difference() public static method

Creates the difference of A and B.
public static difference ( Set $a, Set $b ) : Set
$a Set
$b Set
return Set
Example #1
0
 public function testDifference()
 {
     $difference = Set::difference(new Set(['C', 'A', 'B']), new Set(['A']));
     $this->assertInstanceOf('\\Phpml\\Math\\Set', $difference);
     $this->assertEquals(new Set(['B', 'C']), $difference);
     $this->assertEquals(2, $difference->cardinality());
 }