cosmetic var name change
svn path=/nixpkgs/trunk/; revision=12644
This commit is contained in:
parent
0e9584fe8b
commit
bab435592b
|
@ -490,8 +490,8 @@ rec {
|
||||||
mapRecordFlatten = f : r : map (attr: f attr (builtins.getAttr attr r) ) (attrNames r);
|
mapRecordFlatten = f : r : map (attr: f attr (builtins.getAttr attr r) ) (attrNames r);
|
||||||
|
|
||||||
# maps a function on each attr value
|
# maps a function on each attr value
|
||||||
# f = name : attrValue : ..
|
# f = attr : value : ..
|
||||||
mapAttrs = f : r : listToAttrs ( mapRecordFlatten (n : a : nv n ( f n a ) ) r);
|
mapAttrs = f : r : listToAttrs ( mapRecordFlatten (a : v : nv n ( f a v ) ) r);
|
||||||
|
|
||||||
# to be used with listToAttrs (_a_ttribute _v_alue)
|
# to be used with listToAttrs (_a_ttribute _v_alue)
|
||||||
nv = name : value : { inherit name value; };
|
nv = name : value : { inherit name value; };
|
||||||
|
|
Loading…
Reference in New Issue