aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-04-16 10:51:59 +0200
committerKarel Kočí <cynerd@email.cz>2024-04-16 10:53:52 +0200
commitbbda84ca261397086f866ece115c4ec9111d4d02 (patch)
tree29b165207bf12de36cc6f983edd3f3a65512fba2 /lib
parent2fcf002e3abff092eafd098fadafa15ea579aae4 (diff)
downloadnixos-personal-bbda84ca261397086f866ece115c4ec9111d4d02.tar.gz
nixos-personal-bbda84ca261397086f866ece115c4ec9111d4d02.tar.bz2
nixos-personal-bbda84ca261397086f866ece115c4ec9111d4d02.zip
Try to improve the code
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix2
1 files changed, 1 insertions, 1 deletions
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;