num Char. toInt() ASCII , .
, ASCII 0 :
numbers.add(num.toInt() - '0'.toInt())
:
val zeroAscii = '0'.toInt()
for(num in text) {
numbers.add(num.toInt() - zeroAscii)
}
map, MutableList:
val zeroAscii = '0'.toInt()
val numbers = text.map { it.toInt() - zeroAscii }
String, String.toInt() - :
numbers.add(num.toString().toInt())