at, _at. Element access by index   [3.4.1]

^|-index)   [3.4.4]

When adding elements to the hash, each of them gets its own index, starting from zero. The method returns element by the specified index, so ^ is equal to ^[first].
For negative index it is calculated from the end of the hash, so
^ is equal to ^[last].

Optional second argument determines the result:
value - element value will be returned, by default,
key - element key will be returned,
hash - single element hash with be returned.

Copyright © 1997–2021 Art. Lebedev Studio | Last updated: 27.01.2021