fix zipListsWith function: use it-self for the recursion.

svn path=/nixpkgs/trunk/; revision=27012
This commit is contained in:
Nicolas Pierron 2011-04-27 18:41:31 +00:00
parent 3770ac23aa
commit 781770eaa9

View File

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