karelpeeters
11/03/2018, 10:53 PM.mapNotNull { it.second }.map{ it.doSmth(it.first) }
APXEOLOG
11/03/2018, 11:15 PMit.first
of the pair thenMike
11/04/2018, 2:12 AMif
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.