aboutsummaryrefslogtreecommitdiff
path: root/aoc2023/src/day2/solve.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'aoc2023/src/day2/solve.gleam')
-rw-r--r--aoc2023/src/day2/solve.gleam7
1 files changed, 4 insertions, 3 deletions
diff --git a/aoc2023/src/day2/solve.gleam b/aoc2023/src/day2/solve.gleam
index 608955f..38e62d7 100644
--- a/aoc2023/src/day2/solve.gleam
+++ b/aoc2023/src/day2/solve.gleam
@@ -45,9 +45,10 @@ pub fn part2(input: String) {
green: int.max(green, acc.green),
)
}
- |> list.fold(from: 0, with: fn(acc, g: Game) {
- acc + g.red * g.blue * g.green
- })
+ |> list.fold(
+ from: 0,
+ with: fn(acc, g: Game) { acc + g.red * g.blue * g.green },
+ )
}
pub fn main() {