<@U3T6LDWTD> commented on <@U29NJHBRP>’s file <htt...
# announcements
u
@benleggiero commented on @leonardootto’s file https://kotlinlang.slack.com/files/U29NJHBRP/F6QJZ364R/3_starting_questions.kt: As for a better way to write this:
Copy code
val Collection<String>.palindromes: List<String>
    get() = map { it.split(" ") } .filter { it.isPalindrome()) }
​
var MutableCollection<String>.palindromes: List<String>
    @JvmName("prop2")
    get() = map { it.split(" ") } .filter { it.isPalindrome()) }
    set(list: List<String>) = addAll(list.palindromes)