Skip to content

Instantly share code, notes, and snippets.

@sidharthkuruvila
Created August 23, 2011 07:12
Show Gist options
  • Select an option

  • Save sidharthkuruvila/1164540 to your computer and use it in GitHub Desktop.

Select an option

Save sidharthkuruvila/1164540 to your computer and use it in GitHub Desktop.
Convert a List of Ints into an Array of Chars
val a:Array[Char] = List(72, 101, 108, 108, 111).map(_.toChar)(collection.breakOut)
println(a)
//prints: [C@957cec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment