diff options
author | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2018-08-14 01:01:08 +0200 |
---|---|---|
committer | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2018-08-27 17:11:58 +0200 |
commit | 526d604670a456e59a3d20b657d864f85bb52839 (patch) | |
tree | fd287618013d8f0ba3a2caf2a6f898f0eff9bb92 /lib/attrsets.nix | |
parent | 6afd19e699c1505938d54312b522562fd75c8062 (diff) |
module system: rework module merging
The asymptotic complexity is now much lower.
Diffstat (limited to 'lib/attrsets.nix')
-rw-r--r-- | lib/attrsets.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix index 0066fba362ae9..2c2319003d8b0 100644 --- a/lib/attrsets.nix +++ b/lib/attrsets.nix @@ -145,7 +145,7 @@ rec { foldAttrs = op: nul: list_of_attrs: fold (n: a: fold (name: o: - o // (listToAttrs [{inherit name; value = op n.${name} (a.${name} or nul); }]) + o // { ${name} = op n.${name} (a.${name} or nul); } ) a (attrNames n) ) {} list_of_attrs; |