diff options
author | Erlend Pedersen <erlendpe@online.no> | 2021-05-08 13:55:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 13:55:11 +0200 |
commit | 3452a739d14dcee962479852760dddd661ba01a0 (patch) | |
tree | 0cf33cb23770c28c68166285bbc781d525e7c3df /lib | |
parent | 06efb08ec4377a9b6ecd0e22ba7b4b929fbcb533 (diff) | |
download | nixpkgs-3452a739d14dcee962479852760dddd661ba01a0.tar nixpkgs-3452a739d14dcee962479852760dddd661ba01a0.tar.gz nixpkgs-3452a739d14dcee962479852760dddd661ba01a0.tar.bz2 nixpkgs-3452a739d14dcee962479852760dddd661ba01a0.tar.lz nixpkgs-3452a739d14dcee962479852760dddd661ba01a0.tar.xz nixpkgs-3452a739d14dcee962479852760dddd661ba01a0.tar.zst nixpkgs-3452a739d14dcee962479852760dddd661ba01a0.zip |
nixpkgs-manual: lib.attrsets.mapAttrsToList returns a list (#122179)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/attrsets.nix | 4 |
1 files changed, 4 insertions, 0 deletions
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"; } |