fix zipListsWith function: use it-self for the recursion.
svn path=/nixpkgs/trunk/; revision=27012
This commit is contained in:
parent
3770ac23aa
commit
781770eaa9
@ -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; });
|
||||
|
Loading…
x
Reference in New Issue
Block a user