map To First Not Null Of
Locates the first element T from this Iterable that, when passed to the transform lambda, produces a non-null value R, returning the Pair T to R.
This function is similar to firstNotNullOf, but also includes the element that produces the non-null result.
Return
A pair containing the producing element and its transformation result of the first non-null value produced by transform
Parameters
T
The type of elements in this Iterable
R
The type of the transformation result
Throws
No Such Element Exception
if no transformation produces a non-null result