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 | |
parent | b47e2c2ab6db02e57ac72c200944739a7b4e53e1 (diff) |
imap previously mapped with 1-based indices
Why???? Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'pkgs/lib')
-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 164ff3e1ec991..578686ae36684 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; |