Working with lists
Considering the numerous functions designed to work with lists, their significance is evident. You can think of lists containing primitive values as similar to one-dimensional arrays: a flexible structure that allows for the easy storage and manipulation of data, including adding, removing, and modifying items. This section focuses solely on working with lists; lists that contain other value types, like records or tables, are covered later on in this chapter.
Transforming a list
Every element within a list can be referred to by its positional index – a number that reflects its zero-based position within a list. The first element has a positional index of 0
, followed by the second element with an index of 1
, and so on. A method called item access
provides access to each list element by using this zero-based index position within a set of curly brackets, { }
.
List.Transform
List.Transform
provides a wealth of possibilities. Much like the name...