Set of objects
OperationsDefault constructor
New()
Clears the set
method : public : Empty() ~ Nil
Get a collection of keys
method : public : GetKeys() ~ Vector<K>
Type | Description |
---|---|
Vector<K> | vector of keys |
Checks for key in set
method : public : Has(key:K) ~ Bool
Name | Type | Description |
---|---|---|
key | K | search key |
Type | Description |
---|---|
Bool | true if found, false otherwise |
Inserts a key into the set
method : public : Insert(key:K) ~ Nil
Name | Type | Description |
---|---|---|
key | K | key |
Checks to see if the set is empty
method : public : IsEmpty() ~ Bool
Type | Description |
---|---|
Bool | true if empty, false otherwise |
Removes a key from the set
method : public : Remove(key:K) ~ Bool
Name | Type | Description |
---|---|---|
key | K | key for value to remove |
Type | Description |
---|---|
Bool | true if removed, false otherwise |
Size of map
method : public : Size() ~ Int
Type | Description |
---|---|
Int | size of queue |