I guess the problem is that you're returning the w...
# announcements
k
I guess the problem is that you're returning the wrong value
Copy code
var foundItem : Type? = null
it.firstNotNull {
  val result = it.predicate()
  if (result) { foundItem = it }
  result
}