[Nix-dev] concatAttrs :: [attrSet] -> attrSet ?
Leo Gaspard
leo at gaspard.io
Sun May 28 15:05:22 CEST 2017
On 05/28/2017 02:58 PM, Sergiu Ivanov wrote:
> My use case is quite specific. I do this, approximately:
>
> let func name = { "${name}" = something name; };
> in concatAttrs (map func [ "name1" "name2" ])
If this is your use case, you could also be interested in `genAttrs`
defined in `lib/attrsets.nix` ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: OpenPGP digital signature
URL: <https://mailman.science.uu.nl/pipermail/nix-dev/attachments/20170528/fe346c2a/attachment.sig>
More information about the nix-dev
mailing list