You could capture this ugliness in a variation of ...
# getting-started
c
You could capture this ugliness in a variation of `listOf()`:
fun <T> conditionalListOf(vararg elements: T, condition: (T) -> Boolean)