Nix set builtins

  • attrNames set - return an alphabetically sorted list of keys from the set set
  • attrValues set - return a list of values from the set set sorted according to the alphabetical order of their keys
  • getAttr s set - return the attribute s from set; dynamic version of the . Nix operators
  • hasAttr s set - true if set has attribute s, otherwise false; dynamic version of the ? Nix operators
  • intersectAttrs e1 e2 - return a set of the attributes in e2 whose keys also exist in e1
  • isAttrs e - true if e is a set, otherwise false
  • listToAttrs e - Construct a set from a list of sets with attributes name and value