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:
parent
25fd35862a
commit
388c8e0c60
|
@ -117,13 +117,4 @@ rec {
|
||||||
|
|
||||||
in lib.listToAttrs nodes_;
|
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 [];
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue