![JAR search and dependency download from the Maven repository](/logo.png)
com.ancientlightstudios.quarkus.kotlin.openapi.utils.MapExtensions.kt Maven / Gradle / Ivy
package com.ancientlightstudios.quarkus.kotlin.openapi.utils
fun MutableMap.pop(): Pair? = entries.firstOrNull()?.let {
remove(it.key)
it.key to it.value
}
fun MutableMap.pop(block: (K, V) -> Unit) = pop()?.let { block(it.first, it.second) }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy