nixpkgs-manual: lib.attrsets.mapAttrsToList returns a list (#122179)

This commit is contained in:
Erlend Pedersen
2021-05-08 13:55:11 +02:00
committed by GitHub
parent 06efb08ec4
commit 3452a739d1
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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"; }