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.
파일 보기
프로젝트 열기: markrogoyski/math-php
공개 메소드들
메소드 |
설명 |
|
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) |
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
Cannot remove members of an immutable set