getValue
lib.misc.getValue
Docs pulled from | This Revision | 10 minutes ago
Deprecated
Output : its value or default.
Noogle detected
Implementation
The following is the current implementation of this function.
getValue =
attrSet: argList: name:
(attrByPath [ name ] (
if checkFlag attrSet name then
true
else if argList == [ ] then
null
else
let
x = builtins.head argList;
in
if (head x) == name then (head (tail x)) else (getValue attrSet (tail argList) name)
) attrSet);