From 1345fe3e8d71d29f626cb1a0130705609a96c6e2 Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Wed, 4 Dec 2024 13:16:19 +0100 Subject: [PATCH] remove unnecessary () --- day4/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day4/default.nix b/day4/default.nix index 7d6bcb7..1492878 100644 --- a/day4/default.nix +++ b/day4/default.nix @@ -13,7 +13,7 @@ let (listRange matrix))); construct_diags = matrix: construct_diags' (map reverseList matrix); diags_1 = map concatStrings (construct_diags grid); - diags_2 = map concatStrings (construct_diags' (grid)); + diags_2 = map concatStrings (construct_diags' grid); in { part1 = listSumWith (s: (length (matchAll "XMAS" s)) + (length (matchAll "SAMX" s)))