note that unionOfDisjoint is commutative, unlike //

This commit is contained in:
Adam Joseph 2022-09-12 12:59:16 -07:00
parent e7bafc814c
commit 99da193877

@ -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: