diff options
Diffstat (limited to 'aoc2023/src/day13')
-rw-r--r-- | aoc2023/src/day13/solve.gleam | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/aoc2023/src/day13/solve.gleam b/aoc2023/src/day13/solve.gleam index 2b3fca2..6f9b9a0 100644 --- a/aoc2023/src/day13/solve.gleam +++ b/aoc2023/src/day13/solve.gleam @@ -43,10 +43,11 @@ fn get_symmetry_type(xss: List(List(String)), errors: Int) { fn summarize_notes(symmetries: List(SymmetryType)) { use acc, note <- list.fold(symmetries, 0) - case note { + acc + + case note { Horizontal(n) -> 100 * n Vertical(n) -> n - } + acc + } } fn solve(input: String, errors: Int) { |