imap previously mapped with 1-based indices

Why????

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-07-12 13:06:15 -04:00
parent b47e2c2ab6
commit 8a66c8b8f8

View file

@ -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;