`.mapNotNull { it.second }.map{ it.doSmth(it.first...
# announcements
k
.mapNotNull { it.second }.map{ it.doSmth(it.first) }
a
But i will loose
it.first
of the pair then
m
maybe change the first map to mapNotNull { it.getFullUpdate()?.let {it to it.getFullUpdate()} ?: null } Or the comparable
if
in the mapNotNull. Would have to test to ensure it returns a Pair with non-null types in it. Not sure how clean that is, though.