3
0
Fork 0
forked from mirrors/nixpkgs

Removed the zip function, since it is in pkgs.lib now

svn path=/nixos/trunk/; revision=22883
This commit is contained in:
Sander van der Burg 2010-08-02 16:11:44 +00:00
parent 25fd35862a
commit 388c8e0c60

View file

@ -117,13 +117,4 @@ rec {
in lib.listToAttrs nodes_;
# Zip two lists together. Should be moved to pkgs.lib.
zip = xs: ys:
if xs != [] && ys != [] then
[ {first = lib.head xs; second = lib.head ys;} ]
++ zip (lib.tail xs) (lib.tail ys)
else [];
}