lib/deprecated: alias mapAttrsFlatten to mapAttrsToList
These functions have identical implementation except for argument names.
This commit is contained in:
parent
39ac682f10
commit
a13e0a12b7
@ -31,7 +31,7 @@ let
|
|||||||
toList
|
toList
|
||||||
;
|
;
|
||||||
|
|
||||||
inherit (lib.attrsets) removeAttrs;
|
inherit (lib.attrsets) removeAttrs mapAttrsToList;
|
||||||
|
|
||||||
# returns default if env var is not set
|
# returns default if env var is not set
|
||||||
maybeEnv = name: default:
|
maybeEnv = name: default:
|
||||||
@ -212,7 +212,8 @@ let
|
|||||||
else closePropagationSlow;
|
else closePropagationSlow;
|
||||||
|
|
||||||
# calls a function (f attr value ) for each record item. returns a list
|
# calls a function (f attr value ) for each record item. returns a list
|
||||||
mapAttrsFlatten = f: r: map (attr: f attr r.${attr}) (attrNames r);
|
# Renamed to lib.attrsets.mapAttrsToList.
|
||||||
|
mapAttrsFlatten = mapAttrsToList;
|
||||||
|
|
||||||
# attribute set containing one attribute
|
# attribute set containing one attribute
|
||||||
nvs = name: value: listToAttrs [ (nameValuePair name value) ];
|
nvs = name: value: listToAttrs [ (nameValuePair name value) ];
|
||||||
|
Loading…
Reference in New Issue
Block a user