firstNotNull

Returns the first non-null element in this iterable.

Return

The first non-null element

Type Parameters

T

The type of elements in the iterable (nullable)

Throws

if the iterable contains no non-null elements