cosmetic var name change

svn path=/nixpkgs/trunk/; revision=12644
This commit is contained in:
Marc Weber 2008-08-17 00:06:01 +00:00
parent 0e9584fe8b
commit bab435592b

View File

@ -490,8 +490,8 @@ rec {
mapRecordFlatten = f : r : map (attr: f attr (builtins.getAttr attr r) ) (attrNames r);
# maps a function on each attr value
# f = name : attrValue : ..
mapAttrs = f : r : listToAttrs ( mapRecordFlatten (n : a : nv n ( f n a ) ) r);
# f = attr : value : ..
mapAttrs = f : r : listToAttrs ( mapRecordFlatten (a : v : nv n ( f a v ) ) r);
# to be used with listToAttrs (_a_ttribute _v_alue)
nv = name : value : { inherit name value; };