fun main() { val sb = StringBuilder() // append returns the builder, so calls chain for (i in 1..3) sb.append(i).append(",") println(sb.toString()) }
build text without a new String each step