Inserts or appends to list. Takes the value stored at elementSlot and inserts it into the list stored at listSlot at index.

InsertInList(
listSlot
as Integer,
index
as Integer,
elementSlot
as Integer)
Parameters
- listSlot
- The slot number which contains the list.
- index
- Index to insert at. Or -1 to append.
- elementSlot
- Slot number of the data to insert or append to the list.
Remarks
As in Wren, negative indexes can be used to insert from the end. To append an element, use -1 for the index.
See Also
VM Class