cash.grammar.utils.collections.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
A library for parsing, rewriting, and linting Kotlin source code
package cash.grammar.utils
public inline fun C.ifNotEmpty(block: (C) -> Unit) where C : Collection<*> {
if (isNotEmpty()) {
block(this)
}
}