keySet

fun <T, E> Map<T, E>.keySet(): Set<T>
fun <T, E> List<Pair<T, E>>.keySet(): Set<T>

Isolate the keys out of a list of pairs and store them in a set