diff options
Diffstat (limited to 'src/Utils.kt')
-rw-r--r-- | src/Utils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.kt b/src/Utils.kt index 6268ba6..7876c3a 100644 --- a/src/Utils.kt +++ b/src/Utils.kt @@ -21,7 +21,7 @@ fun readInputAsString(name: String): String = File("src", "$name.txt").readText( * @param name name of the file * @return list of ints containing numbers from each of file's lines */ -fun readInputAsNumbers(name: String): List<Int> = readInputAsLines(name).map { it.toInt() } +fun readInputAsNumbers(name: String): List<Int> = readInputAsLines(name).map(String::toInt) /** * Read lines from the given input txt file containing binary numbers and convert them to lists of bits. |