Skip to content

iter::firstOf

firstOf(items) => a

ParameterTypeDescription
itemsIterable

Throws an error if the Iterable is empty.

Returns

(*) The first element of the given iterable object where the closure returns true.