Nix set builtins
attrNames set
- return an alphabetically sorted list of keys from the setset
attrValues set
- return a list of values from the setset
sorted according to the alphabetical order of their keysgetAttr s set
- return the attributes
fromset
; dynamic version of the.
Nix operatorsᛦhasAttr s set
-true
ifset
has attributes
, otherwise false; dynamic version of the?
Nix operatorsᛦintersectAttrs e1 e2
- return a set of the attributes ine2
whose keys also exist ine1
isAttrs e
-true
ife
is a set, otherwisefalse
listToAttrs e
- Construct a set from a list of sets with attributesname
andvalue