zpearce
data .filter { it.hasErrors } .map { it.error } .takeIf { it is MyException } ?.let { dealWith(it) }
adam-mcneilly