getAttr
builtins.getAttr
Primop
Docs pulled from | This Revision | 1 day ago
Takes 2 arguments
s, set
getAttr
returns the attribute named s from set. Evaluation
aborts if the attribute doesn’t exist. This is a dynamic version of
the .
operator, since s is an expression rather than an
identifier.
This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.
Noogle detected
Detected Type
getAttr :: String -> AttrSet -> a
Implementation
This function is implemented in c++ and is part of the native nix runtime.