kbox-jvm / ch.tutteli.kbox / kotlin.collections.Map

Extensions for kotlin.collections.Map

mapParents

fun <T> Map<T, T>.mapParents(child: T): LinkedHashSet<T>

It is assumed that the Map represents a child parent relation where this function returns a LinkedHashSet with all collected parents.