com.ancientlightstudios.quarkus.kotlin.openapi.utils.SetExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-kotlin-openapi-maven-plugin Show documentation
Show all versions of quarkus-kotlin-openapi-maven-plugin Show documentation
A Maven plugin to use the OpenAPI generator.
package com.ancientlightstudios.quarkus.kotlin.openapi.utils
fun MutableSet.pop(): T? = firstOrNull()?.also { remove(it) }
fun MutableSet.pop(block: (T) -> Unit) = pop()?.let(block)