Kernel.elem/2
defmodule Kernel do
def elem(tuple, index)
end
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.
defmodule Kernel do
def elem(tuple, index)
end
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.