mergeAttrsWithFunc
lib.misc.mergeAttrsWithFunc
Docs pulled from | This Revision | about 1 hour ago
Deprecated
exists in both sets
Noogle detected
Implementation
The following is the current implementation of this function.
mergeAttrsWithFunc =
f: set1: set2:
foldr (n: set: if set ? ${n} then setAttr set n (f set.${n} set2.${n}) else set) (set2 // set1) (
attrNames set2
);