Kotlin HashSet firstNotNullOfOrNull()
Syntax & Examples
Syntax of HashSet.firstNotNullOfOrNull()
The syntax of HashSet.firstNotNullOfOrNull() extension function is:
fun <T, R : Any> Iterable<T>.firstNotNullOfOrNull( transform: (T) -> R? ): R?
This firstNotNullOfOrNull() extension function of HashSet returns the first non-null value produced by transform function being applied to elements of this collection in iteration order, or null if no non-null value was produced.