diff options
Diffstat (limited to 'lib/attrsets.nix')
-rw-r--r-- | lib/attrsets.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix index 0ce3aaeca452d..5c787940cb0cf 100644 --- a/lib/attrsets.nix +++ b/lib/attrsets.nix @@ -243,6 +243,10 @@ rec { /* Call a function for each attribute in the given set and return the result in a list. + Type: + mapAttrsToList :: + (String -> a -> b) -> AttrSet -> [b] + Example: mapAttrsToList (name: value: name + value) { x = "a"; y = "b"; } |