Author: NicolasPierron
Date: Wed Apr 27 18:41:31 2011
New Revision: 27012
URL: https://svn.nixos.org/websvn/nix/?rev=27012&sc=1
Log:
fix zipListsWith function: use it-self for the recursion.
Modified:
nixpkgs/trunk/pkgs/lib/lists.nix
Modified: nixpkgs/trunk/pkgs/lib/lists.nix
==============================================================================
--- nixpkgs/trunk/pkgs/lib/lists.nix Wed Apr 27 18:41:27 2011 (r27011)
+++ nixpkgs/trunk/pkgs/lib/lists.nix Wed Apr 27 18:41:31 2011 (r27012)
@@ -131,7 +131,7 @@
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; });
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits