private inline fun Iterable>.forEachEntry(action: (S, T) -> Unit) = forEach { action(it.key, it.value) } private inline fun Iterable>.forEachPair(action: (S, T) -> Unit) = forEach { action(it.first, it.second) }