1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-12 03:51:04 +01:00
This commit is contained in:
Onyad 2025-08-10 02:57:36 +03:00 committed by Jörg Thalheim
parent 4e776a5be8
commit 4824837685
3 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1 @@
{ column = 5; file = "/pwd/lang/eval-okay-getattrpos-mapattrs.nix"; line = 3; }

View file

@ -0,0 +1,7 @@
let
attrs = {
a = { };
};
mappedAttrs = builtins.mapAttrs (key: value: value) attrs;
in builtins.unsafeGetAttrPos "a" mappedAttrs