package link.roadio.riff.player.library import link.roadio.riff.indexer.core.media.MediaId /** SHRT names its original full identity; another high-colliding record never inherits its state. */ internal fun Map.includingAliases(aliases: Map): Map = this + aliases.mapNotNull { (short, full) -> this[full]?.let { short to it } } internal fun Set.includingAliases(aliases: Map): Set = this + aliases.filterValues { it in this }.keys