You can use .map { ... } with .toInt() or .toIntOrNull(): val result = strings.map { it.toInt() } Only the result is not an array but a list.
確定! 回上一頁