PHP Class 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.
Inheritance: extends Set
Afficher le fichier Open project: markrogoyski/math-php

Méthodes publiques

Méthode Description
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

Method Details

add() public méthode

Cannot add members to an immutable set
public add ( mixed $x ) : Set
$x mixed
Résultat Set (this set unchanged)

addMulti() public méthode

Cannot add members to an immutable set
public addMulti ( array $x ) : Set
$x array
Résultat Set (this set unchanged)

clear() public méthode

Cannot clear an immutable set
public clear ( ) : Set
Résultat Set (this set unchanged)

remove() public méthode

Cannot remove members of an immutable set
public remove ( mixed $x ) : Set
$x mixed
Résultat Set (this set unchanged)

removeMulti() public méthode

Cannot remove members of an immutable set
public removeMulti ( array $x ) : Set
$x array
Résultat Set (this set unchanged)