`list.mapIndexed {i, v -> Pair(i, v)}.filter {i...
# stdlib
v
list.mapIndexed {i, v -> Pair(i, v)}.filter {it.second is A} as List<Int, A>