with Init Blocks
List containing declarations that have init block(s).
Return
A list containing declarations with the init block(s).
fun <T : KoInitBlockProvider> List<T>.withInitBlocks(predicate: (List<KoInitBlockDeclaration>) -> Boolean): List<T>
List containing declarations with init block declarations satisfying the predicate.
Return
A list containing declarations with init block declarations satisfying the predicate.
Parameters
predicate
A function that defines the condition to be met by the list of init block declarations.