traverse code example
Example: traverse
A data structure contains elements, which contain data. Traversing a data structure means: "visiting" or "touching" the elements of the structure, and doing something with the data. (Traversing is also sometimes called iterating over the data structure)