``` testDataConst.filterKeys { it.contains("NodeFo...
# announcements
m
Copy code
testDataConst.filterKeys { it.contains("NodeForDelete") }
                        .values.map { NodeID(it) } << need to create an object=)
                        .toList()
c
with filterkeys you're creating a new map, then you're extracting a list of values, then you're mapping them to a list of objects, a lot of unnecessary operations
Copy code
testDataConst.asSequence()
    .filter { "NodeForDelete" in it.key }
    .map { NodeID(it.value) }
    .toList()