Skip to content

Commit

Permalink
Implement the "main function" for the morning of Day 1
Browse files Browse the repository at this point in the history
  • Loading branch information
codingzorro committed Jan 14, 2024
1 parent 27fdccd commit 575b3bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/advent2023/day01.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@
(defn morning01
"Calculate the sum of the calibration of each one of the given lines"
[lines]
0)
(->> lines
(map decode)
(map to-int)
(reduce +)))

0 comments on commit 575b3bf

Please sign in to comment.