hasAttr
lib.attrsets.hasAttr
Primop
Docs pulled from | This Revision | about 1 hour ago
Takes 2 arguments
s, set
hasAttr
returns true
if set has an attribute named s, and
false
otherwise. This is a dynamic version of the ?
operator,
since s is an expression rather than an identifier.
Noogle detected
Detected Type
hasAttr :: String -> AttrSet -> Bool
Implementation
This function is implemented in c++ and is part of the native nix runtime.