![]() |
Fruit DSKit
Common data structures for Fruit framework
|
Public Member Functions | |
__construct () | |
has ($data) | |
detect if data is in the set More... | |
add ($data) | |
add one data into the set, no-op if exists More... | |
del ($data) | |
delete data from the set, no-op if non-exists More... | |
len () | |
size of the collection More... | |
toArray () | |
convert to array More... | |
iterator () | |
An array based set implementation
Definition at line 8 of file ArraySet.php.
__construct | ( | ) |
Definition at line 12 of file ArraySet.php.
add | ( | $data | ) |
add one data into the set, no-op if exists
Implements Set.
Definition at line 22 of file ArraySet.php.
del | ( | $data | ) |
delete data from the set, no-op if non-exists
Implements Set.
Definition at line 27 of file ArraySet.php.
has | ( | $data | ) |
iterator | ( | ) |
Returns an iterator to iterate this collection
Implements Collection.
Definition at line 42 of file ArraySet.php.
len | ( | ) |
toArray | ( | ) |