From 3452a739d14dcee962479852760dddd661ba01a0 Mon Sep 17 00:00:00 2001 From: Erlend Pedersen Date: Sat, 8 May 2021 13:55:11 +0200 Subject: nixpkgs-manual: lib.attrsets.mapAttrsToList returns a list (#122179) --- lib/attrsets.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/attrsets.nix b/lib/attrsets.nix index 0ce3aaeca45..5c787940cb0 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"; } -- cgit 1.4.1