``` fun getYear(): String? { for (node in chil...
# announcements
v
Copy code
fun getYear(): String? {
    for (node in childNodes) {
        val matcher = yearPattern.matcher(node.attr("href").trim())
        if (matcher.find()) {
            return matcher.group("year")
        }
    }
    return null
}
Is there a more concise way to do this via collection functions?