Solve AOC Day 10 pt 1

This commit is contained in:
2020-12-10 18:57:54 -07:00
parent 8795595b1b
commit acd1289fe4
6 changed files with 133 additions and 1 deletions

View File

@@ -17,7 +17,8 @@
(lambda [line] (< 0 line.length))))
(lambda [lines] (< 0 lines.length))))
(defun readInts [file] (let [lines (readLines file)] (lines.map Std.parseInt)))
// TODO won't need to specify type here if last is not a quickNth
(defun :kiss.List<Int> readInts [file] (let [lines (readLines file)] (lines.map Std.parseInt)))
(defun countChar [char str]
(count (str.split "") (lambda [c] ?(= c char))))