From 8a66c8b8f8b0629cb03babb2cd9f26d6884b0541 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Fri, 12 Jul 2013 13:06:15 -0400 Subject: [PATCH] imap previously mapped with 1-based indices Why???? Signed-off-by: Shea Levy --- pkgs/lib/lists.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;