veiset
07/06/2017, 2:08 PMarrayOf(1, 2, 3)
.map { Pair(map[it]!!, it) }
.filter { it.first != null }
.map { plusOne(it.first) }
Even though you get a warning on the filter, claiming it will always be true. This is an interesting case though, I have no clue whats best to do here!