···10421043 :::
1044 */
1045- mapAttrs' = f: set: listToAttrs (map (attr: f attr set.${attr}) (attrNames set));
10461047 /**
1048 Call a function for each attribute in the given set and return
···10761077 :::
1078 */
1079- mapAttrsToList = f: attrs: map (name: f name attrs.${name}) (attrNames attrs);
10801081 /**
1082 Deconstruct an attrset to a list of name-value pairs as expected by [`builtins.listToAttrs`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-listToAttrs).
···10421043 :::
1044 */
1045+ mapAttrs' = f: set: listToAttrs (mapAttrsToList f set);
10461047 /**
1048 Call a function for each attribute in the given set and return
···10761077 :::
1078 */
1079+ mapAttrsToList = f: attrs: attrValues (mapAttrs f attrs);
10801081 /**
1082 Deconstruct an attrset to a list of name-value pairs as expected by [`builtins.listToAttrs`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-listToAttrs).
···89 in
90 recurse [ ] set;
9192- mapAttrs'' = f: set: foldl' (a: b: a // b) { } (map (attr: f attr set.${attr}) (attrNames set));
9394 # Extract the options from the given set of parameters.
95 paramsToOptions = ps: mapParamsRecursive (_path: name: param: { ${name} = param.option; }) ps;
···89 in
90 recurse [ ] set;
9192+ mapAttrs'' = f: set: foldl' (a: b: a // b) { } (mapAttrsToList f set);
9394 # Extract the options from the given set of parameters.
95 paramsToOptions = ps: mapParamsRecursive (_path: name: param: { ${name} = param.option; }) ps;