new Array()
- Description:
Implements a macroscopic ersatz of a VSA indexed list.
- An indexed list is created adding new index/value pairs.
- It simply corresponds to an AssociativeMap with Number as key.
- It is implemented via Bundling and Binding, without using a C++
std::vector.
Extends: AssociativeMap, with all public methods available.
Methods
add(indexopt, value)
- Description:
Adds a new symbol pair to the container.
- Adding twice the same index/value pair corresponds to adding their belief level
tau.
- Adding twice the same index/value pair corresponds to adding their belief level
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
index |
uint |
<optional> |
The symbol index to add or modify. By default the symbol is appended. |
value |
Symbol | The symbol value to add. |
get(index) → {Symbol}
- Description:
Returns an approximate value of the associative map by unbinding.
Parameters:
| Name | Type | Description |
|---|---|---|
index |
uint | The symbol index. |
Returns:
value A reference to the stored value, available until program end.
- Type
- Symbol