PHP Класс MathPHP\SetTheory\ImmutableSet
Add, remove, and clear do not work on an immutable set. No Exceptions will
be thrown; it will just do nothing.
Other than that, it acts just like a Set.
Показать файл
Открыть проект
Открытые методы
Метод |
Описание |
|
add ( mixed $x ) : Set |
Cannot add members to an immutable set |
|
addMulti ( array $x ) : Set |
Cannot add members to an immutable set |
|
clear ( ) : Set |
Cannot clear an immutable set |
|
remove ( mixed $x ) : Set |
Cannot remove members of an immutable set |
|
removeMulti ( array $x ) : Set |
Cannot remove members of an immutable set |
|
Описание методов
Cannot add members to an immutable set
public add ( mixed $x ) : Set |
$x |
mixed |
|
Результат |
Set |
(this set unchanged) |
addMulti()
публичный метод
Cannot add members to an immutable set
Cannot clear an immutable set
public clear ( ) : Set |
Результат |
Set |
(this set unchanged) |
Cannot remove members of an immutable set
removeMulti()
публичный метод
Cannot remove members of an immutable set