Skip to content

iter::firstOfOrNil

firstOfOrNil(items) => a

ParameterTypeDescription
itemsIterable

Returns

(*) The first element of the given iterable object where the closure returns true, or nil if the Iterable is empty