lib.foldAttrs: Clarify example

This commit is contained in:
Robert Hensing 2022-05-10 06:52:20 +02:00
parent ecc106108c
commit 4d2237c841

View File

@ -248,7 +248,7 @@ rec {
/* Apply fold functions to values grouped by key.
Example:
foldAttrs (n: a: [n] ++ a) [] [{ a = 2; } { a = 3; }]
foldAttrs (item: acc: [item] ++ acc) [] [{ a = 2; } { a = 3; }]
=> { a = [ 2 3 ]; }
*/
foldAttrs = op: nul: