Update lib/attrsets.nix

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
Adam Joseph 2023-01-25 02:52:54 +00:00 committed by GitHub
parent ee00af7a32
commit a4e3e16258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -483,7 +483,10 @@ rec {
the *leaf* attributes of a potentially-nested attribute set:
the second argument of the function will never be an attrset.
Also, the first argument of the argument function is a *list*
of the names of the containing attributes.
of the attribute names that form the path to the leaf attribute.
For a function that gives you control over what counts as a leaf,
see `mapAttrsRecursiveCond`.
Example:
mapAttrsRecursive (path: value: concatStringsSep "-" (path ++ [value]))