withValue

fun <T : KoValueProvider> List<T>.withValue(vararg values: String): List<T>

List containing elements with value.

Return

A list containing elements with the specified values (or any value if values is empty).

Parameters

values

The value(s) to include.


fun <T : KoValueProvider> List<T>.withValue(predicate: (String) -> Boolean): List<T>

List containing declarations that have a value matching the provided predicate.

Return

A list containing declarations with the value matching the provided predicate.

Parameters

predicate

A function that defines the condition to be met by a declaration value.