mirror of
https://github.com/NixOS/nix
synced 2025-07-18 07:08:27 +02:00
* New builtin functions builtins.{hasAttr, getAttr} to check for
attribute existence and to return an attribute from an attribute set, respectively. Example: `hasAttr "foo" {foo = 1;}'. They differ from the `?' and `.' operators in that the attribute name is an arbitrary expression. (NIX-61)
This commit is contained in:
parent
666babbbfa
commit
8a1ab709a4
3 changed files with 27 additions and 0 deletions
1
tests/lang/eval-okay-attrs2.exp
Normal file
1
tests/lang/eval-okay-attrs2.exp
Normal file
|
@ -0,0 +1 @@
|
|||
Int(987)
|
Loading…
Add table
Add a link
Reference in a new issue