It seems that lib.zip is already taken from attributesets, therefore renaming it to zipTwoLists

svn path=/nixpkgs/trunk/; revision=22887
This commit is contained in:
Sander van der Burg 2010-08-02 16:48:19 +00:00
parent d17f0f9cbc
commit 1e9dc2b254

View file

@ -178,9 +178,9 @@ rec {
loop list;
# Zip two lists together.
zip = xs: ys:
zipTwoLists = xs: ys:
if xs != [] && ys != [] then
[ {first = head xs; second = head ys;} ]
++ zip (tail xs) (tail ys)
++ zipTwoLists (tail xs) (tail ys)
else [];
}