mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
lib.concatMapAttrs: Simplify stack trace
This commit is contained in:
parent
a1b9aae0f8
commit
5319ddf7dc
@ -123,7 +123,11 @@ rec {
|
||||
{ x = "a"; y = "b"; }
|
||||
=> { x = "a"; xa = "a"; y = "b"; yb = "b"; }
|
||||
*/
|
||||
concatMapAttrs = f: flip pipe [ (mapAttrs f) attrValues (foldl' mergeAttrs { }) ];
|
||||
concatMapAttrs = f: v:
|
||||
foldl' mergeAttrs { }
|
||||
(attrValues
|
||||
(mapAttrs f v)
|
||||
);
|
||||
|
||||
|
||||
/* Update or set specific paths of an attribute set.
|
||||
|
Loading…
Reference in New Issue
Block a user