with Enum Constant
fun <T : KoEnumConstantProvider> List<T>.withEnumConstant(predicate: (KoEnumConstantDeclaration) -> Boolean): List<T>
List containing declarations that have at least one enum constant satisfying the provided predicate.
Return
A list containing declarations with at least one enum constant satisfying the predicate.
Parameters
predicate
A function that defines the condition to be met by an enum constant declaration.