Lists#
The same rules apply to lists as they do to variables. You can declare a list for all sprites in stage.gs
, for this sprite only in the sprite's .gs
file. There are no
local lists.
Delete all items from a list#
This statement is considered the declaration of a list.
Delete item at index from a list#
Delete last item of list#
Add item to list#
Insert item at index in list#
Replace item at index in list#
Apply operator to item at index in list#
list[index] += 1;
list[index] -= 1;
list[index] *= 1;
list[index] /= 1;
list[index] // = 1; # Floor Division
list[index] %= 1;
list[index] &= "suffix";
Get item at index from list#
Get last item of list#
Get length of list#
Get index of item in list#
TODO