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

Changed files
+5 -1
doc
functions
library
lib
+1 -1
doc/functions/library/attrsets.xml
···
<title><function>lib.attrsets.mapAttrsToList</function></title>
<subtitle><literal>mapAttrsToList :: (String -> Any -> Any) ->
-
AttrSet -> Any</literal>
+
AttrSet -> [Any]</literal>
</subtitle>
<xi:include href="./locations.xml" xpointer="lib.attrsets.mapAttrsToList" />
+4
lib/attrsets.nix
···
/* 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"; }