Strings In Depth4 / 19
Up next

capitalize and toList

@main def main(): Unit =
  val s = "scala"
  // capitalize upper-cases only the first char
  println(s.capitalize)
  // toList yields a List[Char]
  println(s.toList)
What you're solving

upper-case the first char