I am confused about list of chars and int with scala. Here is my example :
scala> var s = "123456"
s: String = 123456
scala> s.map(_.toInt)
res0: scala.collection.immutable.IndexedSeq[Int] = Vector(49, 50, 51, 52, 53, 54)
scala> s.map(_.toInt).sum
res1: Int = 309
The chars are converted in ASCII code I assume, how to just transform a char in its value ?
Thank you