-
Notifications
You must be signed in to change notification settings - Fork 0
Lists
Julius Paffrath edited this page Jun 24, 2026
·
8 revisions
Lists are a very powerfull kind of variable and can store any type of data. Creating a list is easy:
store list() in myListCreating a new list with elements is easy as well:
store list("Apple", "Orange", "Banana") in myFruitsIf you add an element to a list, it will be appended at the end of the list:
store listAdd(myFruits, "Cherry") in myFruitsAs you can see, all list functions are returning copies, so you have to store the result.
Returns a new list containing the given elements.
Adds the given element to the list.
Sets an element at the given index.
Returns the element at the given index.
Returns the elements in the given range.
Removes the element at the given index.
Reverses the elements in the list.
Extends a list with another list.