diff options
author | Adam Joseph <adam@westernsemico.com> | 2022-09-12 12:59:16 -0700 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2022-09-12 12:59:16 -0700 |
commit | 99da19387705b90647741f020ad2f835e6c8056b (patch) | |
tree | 45a7b567dd0e40335025a4032414d256f0fb8846 /lib/attrsets.nix | |
parent | e7bafc814c26812bdad587f347d9a1856287719b (diff) |
note that `unionOfDisjoint` is commutative, unlike //
Diffstat (limited to 'lib/attrsets.nix')
-rw-r--r-- | lib/attrsets.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix index 6c666ea375e59..31dc27969cc04 100644 --- a/lib/attrsets.nix +++ b/lib/attrsets.nix @@ -624,7 +624,8 @@ rec { /* `unionOfDisjoint x y` is equal to `x // y // z` where the attrnames in `z` are the intersection of the attrnames in `x` and - `y`, and all values `assert` with an error message */ + `y`, and all values `assert` with an error message. This + operator is commutative, unlike (//). */ unionOfDisjoint = x: y: x // (mapAttrs (name: val: |