From 3b843970e615ea17b1e5d0e5761ee570fe769573 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 2 Dec 2023 17:55:19 +0300 Subject: [PATCH] Use tail function --- 2023/2-2.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2023/2-2.nix b/2023/2-2.nix index ad169ae..7efbf14 100644 --- a/2023/2-2.nix +++ b/2023/2-2.nix @@ -7,7 +7,7 @@ with builtins; with lib; rec { maxRGB else getMaxRGB { maxRGB = mapAttrs (name: max (head rgbs).${name} or 0) maxRGB; - rgbs = sublist 1 (length rgbs - 1) rgbs; + rgbs = tail rgbs; }; makeOneIfZero = number: if number == 0 then 1 else number;