summaryrefslogtreecommitdiff
path: root/lib/attrsets.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/attrsets.nix')
-rw-r--r--lib/attrsets.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix
index 0ce3aaeca452..5c787940cb0c 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"; }