Skip to content

iter::first

first(items)

ParameterTypeDescription
itemsIterable

Throws an error if the Iterable is empty.

Returns

(*) The first element of the given iterable object.