query
On this page

zipAttrs

lib.attrsets.zipAttrs

Docs pulled from | This Revision | 43 minutes ago


Merge sets of attributes and combine each attribute value in to a list.

Like lib.attrsets.zipAttrsWith with (name: values: values) as the function.

Type

zipAttrs :: [ AttrSet ] -> AttrSet

Examples

lib.attrsets.zipAttrs usage example

zipAttrs [{a = "x";} {a = "y"; b = "z";}]
=> { a = ["x" "y"]; b = ["z"]; }

Noogle detected

Aliases

Implementation

This function is implemented in c++ and is part of the native nix runtime.

Implementation

The following is the current implementation of this function.

zipAttrs = zipAttrsWith (name: values: values);