rename attrs.listToAttrsIdentity -> attrs.identityAttrsList
the name was easily confusable with listToAttrs which expects {name =
...; value = ...; } structure
This commit is contained in:
parent
4722d566ff
commit
3d2f657e9d
2 changed files with 9 additions and 9 deletions
|
|
@ -1,12 +1,9 @@
|
|||
{lists}: rec {
|
||||
nameValuePair = name: value: {inherit name value;};
|
||||
|
||||
listToAttrsIdentity = values:
|
||||
builtins.listToAttrs (
|
||||
builtins.map
|
||||
(x: nameValuePair x x)
|
||||
values
|
||||
);
|
||||
identityAttrs = value: {${value} = value;};
|
||||
|
||||
identityAttrsList = values: builtins.map (v: identityAttrs v) values;
|
||||
|
||||
/**
|
||||
Generate an attribute set by mapping a function over a list of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue