Method |
Description |
|
__construct ( array $elements = [] ) |
|
|
add ( string | integer | float $element ) : Set |
|
|
addAll ( array $elements ) : Set |
|
|
cardinality ( ) : integer |
|
|
cartesian ( Set $a, Set $b ) : array |
Creates the Cartesian product of A and B. |
|
contains ( string | integer | float $element ) : boolean |
|
|
containsAll ( array $elements ) : boolean |
|
|
difference ( Set $a, Set $b ) : Set |
Creates the difference of A and B. |
|
getIterator ( ) : ArrayIterator |
|
|
intersection ( Set $a, Set $b ) : Set |
Creates the intersection of A and B. |
|
isEmpty ( ) : boolean |
|
|
power ( Set $a ) : array |
Creates the power set of A. |
|
remove ( string | integer | float $element ) : Set |
|
|
removeAll ( array $elements ) : Set |
|
|
toArray ( ) : array |
|
|
union ( Set $a, Set $b ) : Set |
Creates the union of A and B. |
|