attrVals
lib.attrsets.attrVals
Docs pulled from | This Revision | 4 days ago
Returns the specified attributes from a set.
Inputs
nameList-
The list of attributes to fetch from
set. Each attribute name must exist on the attribute 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;