From bbda84ca261397086f866ece115c4ec9111d4d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 16 Apr 2024 10:51:59 +0200 Subject: Try to improve the code --- lib/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/default.nix b/lib/default.nix index 036af97..3f14de0 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -7,7 +7,7 @@ nixpkgslib: let pow = base: e: if e == 0 then 1 - else foldl (a: b: a * base) 1 (genList id (e - 1)); + else foldl (x: _: x * base) 1 (genList id (e - 1)); # Power of 2 pow2 = pow 2; -- cgit v1.2.3