From 98e332f9a172d23476578b94abdadc6d7748836d Mon Sep 17 00:00:00 2001 From: Hamcha Date: Tue, 3 Dec 2024 22:17:58 +0100 Subject: [PATCH] simplify more --- src/day2_p1.gleam | 2 +- src/day2_p2.gleam | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }