vector tag
Persistent logic tag
Stores a list of values.
Sample usage
Fields
Primary field
Secondary fields
- @: At operator. Takes an index number, or list of index numbers, and generates the vector's values at those positions.
- #: Size operator. Gets the number of elements in the vector.
- &: Address operator. Gets a reference to the vector tag's location.
- clear: Clears the contents of the vector. If the onClear field is specified, that code is executed,
otherwise the onCommit field is executed if that field is specified.
- onPush:
- onClear:
- onCommit:
- onPull:
Behaviour
The vector tag holds a list of zero or more values. When a new value is pushed into a vector, it is added to
the end of the list. Values are immutable once added to the list, they cannot be modified without clearing the
entire vector.
Vector fields within ioL work with the same mechanics as vector tags, so the same built-in secondary fields that apply
to vector tags also apply to vector fields.
Result
Notes
Example