PureBasic - List
Lists (also known as linked-lists) are structures for storing data which are dynamically allocated depending of your need. It is a list of elements (the data you want to store) and each element is fully independent of the others. You can add as many elements you want (or as many as will fit into the memory of your computer), insert elements at the position you need, delete some other and more. This kind of data management is very useful as it's one of the best ways to handle data when you do not know how many elements you will need to store, or if you are often changing how many elements there are.
Before you can work with Lists, you must declare them first. This could be done with the keyword NewList. For saving the contents are also often used structures.
Lists can be sorted using SortList() or SortStructuredList(), and can also be randomized using RandomizeList().
To specifically search the contents of a List, using of loops is recommended: For : Next, ForEach : Next, Repeat : Until or While : Wend.
Other possibilities for storing data are the use of Arrays and Maps.