Strings In Depth13 / 19
Up next

StringBuilder

@main def main(): Unit =
  val sb = new StringBuilder
  // append mutates the buffer and returns it
  sb.append("ru")
  sb.append('s')
  sb.append("t")
  println(sb.toString)
What you're solving

grow text in place