Concept Flow - Accessing elements (indexing, first, last)
Start with Array
Choose index or method
Indexing: array[index
Return element at index
First element: array.first
Return first element
Last element: array.last
Return last element
Start with an array, then access elements by index, or use .first or .last methods to get the first or last element.