kirillrakhman
var foundItem : Type? = null it.firstNotNull { val result = it.predicate() if (result) { foundItem = it } result }