dbl -> toDouble
This commit is contained in:
@@ -27,7 +27,7 @@ class Luhny() {
|
||||
|
||||
// Commented for KT-621
|
||||
// when (it) {
|
||||
// .isDigit() => digits.addLast(it.int - '0'.int)
|
||||
// .isDigit() => digits.addLast(it.toInt() - '0'.toInt())
|
||||
// ' ', '-' => {}
|
||||
// else => {
|
||||
// printAll()
|
||||
@@ -36,7 +36,7 @@ class Luhny() {
|
||||
// }
|
||||
|
||||
if (it.isDigit()) {
|
||||
digits.addLast(it.int - '0'.int)
|
||||
digits.addLast(it.toInt() - '0'.toInt())
|
||||
} else if (it == ' ' || it == '-') {
|
||||
} else {
|
||||
printAll()
|
||||
@@ -123,6 +123,6 @@ fun Reader.forEachChar(body : (Char) -> Unit) {
|
||||
do {
|
||||
var i = read();
|
||||
if (i == -1) break
|
||||
body(i.char)
|
||||
body(i.toChar())
|
||||
} while(true)
|
||||
}
|
||||
Reference in New Issue
Block a user