The entries of the list, sequence or array are numbered starting with 0. If i is negative, then the i-th entry counting from the end is provided. If i is out of range, an error is signaled.
i1 : x = a..t
o1 = (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
o1 : Sequence
i2 : #x
o2 = 20
i3 : x_-1, x_19, x_0
o3 = (t, t, a)
o3 : Sequence
Caveat
Lists are immutable objects, i.e. you cannot assign to them. See MutableList for lists that you may modify.
See also
BasicList # ZZ -- get value from list, hash table, database, or string