rename attrs.listToAttrsIdentity -> attrs.identityAttrsList

the name was easily confusable with listToAttrs which expects {name =
...; value = ...; } structure
This commit is contained in:
Emile Clark-Boman 2025-12-14 09:26:37 +10:00
parent 4722d566ff
commit 3d2f657e9d
2 changed files with 9 additions and 9 deletions

View file

@ -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