propagateNull

fun <A : Any, B : Any> Pair<A?, B?>.propagateNull(): Pair<A, B>?

When both items in pair are not null, returns non-nullable pair, otherwise returns null.

Sources

Katlib source
Link copied to clipboard