Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
val str = "Hello, Kotlin!"
val result = str.chunked(2) { it.reversed() }
["eH", "ll", ",o", " K", "to", "li", "!n"]
["He", "ll", "o ", "Ko", "tl", "in", "!"]
Виключення
["eH", "ll", ",o", "K ", "to", "il", "!n"]
["He", "ll", "o,", " K", "ot", "li", "n!"]
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!