diff --git a/src/day2_p1.gleam b/src/day2_p1.gleam index 9a9692c..139f87b 100644 --- a/src/day2_p1.gleam +++ b/src/day2_p1.gleam @@ -8,7 +8,7 @@ import stdin.{stdin} pub fn main() { stdin() |> parse - |> count(fn(x) { is_safe(x) }) + |> count(is_safe) |> io.debug } diff --git a/src/day2_p2.gleam b/src/day2_p2.gleam index ca325f8..f173d27 100644 --- a/src/day2_p2.gleam +++ b/src/day2_p2.gleam @@ -8,7 +8,7 @@ import stdin.{stdin} pub fn main() { stdin() |> parse - |> count(fn(x) { is_safe_all_combo(x) }) + |> count(is_safe_all_combo) |> io.debug }