From 781770eaa94814a9c68876b639014a637c9ae42a Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Wed, 27 Apr 2011 18:41:31 +0000 Subject: [PATCH] fix zipListsWith function: use it-self for the recursion. svn path=/nixpkgs/trunk/; revision=27012 --- 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 36fa236304d..a843addaf9e 100644 --- a/pkgs/lib/lists.nix +++ b/pkgs/lib/lists.nix @@ -131,7 +131,7 @@ rec { zipListsWith = f: fst: snd: if fst != [] && snd != [] then [ (f (head fst) (head snd)) ] - ++ zipLists (tail fst) (tail snd) + ++ zipListsWith f (tail fst) (tail snd) else []; zipLists = zipListsWith (fst: snd: { inherit fst snd; });