You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A port of lib function added in Nix 2.6. Nixpkgslib/attrsets.nix mentions:
{/* Merge sets of attributes and use the function f to merge attributes values. Example: zipAttrsWithNames ["a"] (name: vs: vs) [{a = "x";} {a = "y"; b = "z";}] => { a = ["x" "y"]; } */zipAttrsWithNames=names: f: sets:
listToAttrs(map(name: {inheritname;value=fname(catAttrsnamesets);})names);/* Implementation note: Common names appear multiple times in the list of names, hopefully this does not affect the system because the maximal laziness avoid computing twice the same expression and listToAttrs does not care about duplicated attribute names. Example: zipAttrsWith (name: values: values) [{a = "x";} {a = "y"; b = "z";}] => { a = ["x" "y"]; b = ["z"] } */zipAttrsWith=builtins.zipAttrsWithor(f: sets: zipAttrsWithNames(concatMapattrNamessets)fsets);}
The text was updated successfully, but these errors were encountered:
A port of
lib
function added in Nix 2.6.Nixpkgs
lib/attrsets.nix
mentions:The text was updated successfully, but these errors were encountered: