asIterable
Creates an Iterable instance that wraps the original char sequence returning its characters when being iterated.
fun CharSequence.asIterable(): Iterable<Char>(source)
fun main() {
val text = "Kotlin"
for (c in text.asIterable()) {
println(c)
}
}