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:
parent
d17f0f9cbc
commit
1e9dc2b254
@ -178,9 +178,9 @@ rec {
|
|||||||
loop list;
|
loop list;
|
||||||
|
|
||||||
# Zip two lists together.
|
# Zip two lists together.
|
||||||
zip = xs: ys:
|
zipTwoLists = xs: ys:
|
||||||
if xs != [] && ys != [] then
|
if xs != [] && ys != [] then
|
||||||
[ {first = head xs; second = head ys;} ]
|
[ {first = head xs; second = head ys;} ]
|
||||||
++ zip (tail xs) (tail ys)
|
++ zipTwoLists (tail xs) (tail ys)
|
||||||
else [];
|
else [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user