-
-
Notifications
You must be signed in to change notification settings - Fork 9
Element Access
IsaacShelton edited this page Mar 21, 2022
·
1 revision
Elements of an array-like value can be accessed using the []
operator and providing an index.
array_like[index]
All indices start at zero, so in order to retrieve the first element, you use the zeroth index:
array_like[0]
Array-like values include:
The resulting value will be the mutable value at the supplied index