From ba2414968e2aa74defdb470fc35f7c99122f8482 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 2 Dec 2023 17:53:44 +0300 Subject: [PATCH] Make result variable more consistent --- 2023/1-1.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/2023/1-1.nix b/2023/1-1.nix index cce02b0..4a8dae3 100644 --- a/2023/1-1.nix +++ b/2023/1-1.nix @@ -11,7 +11,5 @@ with builtins; with lib; rec { linesNumbers = map firstAndLastConcatted linesOnlyNumbers; - sumOfLinesNumbers = foldl' add 0 (map fromJSON linesNumbers); - - result = sumOfLinesNumbers; + result = foldl' add 0 (map fromJSON linesNumbers); }