diff options
author | Shea Levy <shea@shealevy.com> | 2013-07-12 13:06:15 -0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2013-07-12 13:06:32 -0400 |
commit | 8a66c8b8f8b0629cb03babb2cd9f26d6884b0541 (patch) | |
tree | b79d0be6bed2f43c9074384018670edab67bbe2e /pkgs/lib/lists.nix | |
parent | b47e2c2ab6db02e57ac72c200944739a7b4e53e1 (diff) | |
download | nixpkgs-8a66c8b8f8b0629cb03babb2cd9f26d6884b0541.tar nixpkgs-8a66c8b8f8b0629cb03babb2cd9f26d6884b0541.tar.gz nixpkgs-8a66c8b8f8b0629cb03babb2cd9f26d6884b0541.tar.bz2 nixpkgs-8a66c8b8f8b0629cb03babb2cd9f26d6884b0541.tar.lz nixpkgs-8a66c8b8f8b0629cb03babb2cd9f26d6884b0541.tar.xz nixpkgs-8a66c8b8f8b0629cb03babb2cd9f26d6884b0541.tar.zst nixpkgs-8a66c8b8f8b0629cb03babb2cd9f26d6884b0541.zip |
imap previously mapped with 1-based indices
Why???? Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'pkgs/lib/lists.nix')
-rw-r--r-- | pkgs/lib/lists.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/lib/lists.nix b/pkgs/lib/lists.nix index 164ff3e1ec9..578686ae366 100644 --- a/pkgs/lib/lists.nix +++ b/pkgs/lib/lists.nix @@ -52,7 +52,7 @@ in rec { imap' = n: if n == len then [] - else [ (f n (elemAt list n)) ] ++ imap' (inc n); + else [ (f (inc n) (elemAt list n)) ] ++ imap' (inc n); in imap' 0; |