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, 3 insertions, 4 deletions
diff --git a/aoc2023/src/day2/solve.gleam b/aoc2023/src/day2/solve.gleam
index 38e62d7..608955f 100644
--- a/aoc2023/src/day2/solve.gleam
+++ b/aoc2023/src/day2/solve.gleam
@@ -45,10 +45,9 @@ 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() {