attrVals
lib.attrVals
Docs pulled from | This Revision | 13 minutes ago
Return the specified attributes from a set.
Inputs
nameList
-
The list of attributes to fetch from
set
. Each attribute name must exist on the attrbitue set set
-
The set to get attribute values from
Type
attrVals :: [String] -> AttrSet -> [Any]
Examples
lib.attrsets.attrVals
usage example
attrVals ["a" "b" "c"] as
=> [as.a as.b as.c]
Noogle detected
Implementation
The following is the current implementation of this function.
attrVals =
nameList:
set: map (x: set.${x}) nameList;