Kernel

elem/2

elem(tuple, index)

Gets the element at the zero-based index in tuple. Allowed in guard tests.

It raises ArgumentError when index is negative or it is out of range of the tuple elements.