query
On this page

zipWithNames

lib.attrsets.zipWithNames



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"]; }

Type

zipAttrsWithNames :: [ String ] -> (String -> [ Any ] -> Any) -> [ AttrSet ] -> AttrSet

Arguments

  • [names] List of attribute names to zip.
  • [f] A function, accepts an attribute name, all the values, and returns a combined value.
  • [sets] List of values from the list of attribute sets.
(lib.attrsets.zipAttrsWithNames)

Noogle also knows

Aliases