summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorNicolas Pierron <nicolas.b.pierron@gmail.com>2011-04-27 18:41:31 +0000
committerNicolas Pierron <nicolas.b.pierron@gmail.com>2011-04-27 18:41:31 +0000
commit781770eaa94814a9c68876b639014a637c9ae42a (patch)
tree232d161bd163f6bd2a0a93d4902ac0a0e36cf890 /pkgs
parent3770ac23aa811cd4d81ad27dd4ead4a3cd7bdc28 (diff)
fix zipListsWith function: use it-self for the recursion.
svn path=/nixpkgs/trunk/; revision=27012
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/lib/lists.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/lib/lists.nix b/pkgs/lib/lists.nix
index 36fa236304da9..a843addaf9e5a 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; });