Skip to content

iter::at

at(items, index)
at(items, index, fallback)

ParameterTypeDescription
itemsIterable
index*
(optional) fallback*

Equivalent to x[y] but returns nil if the item does not exist.

Returns

(*) The item at the given index.