query
On this page

attrNames

builtins.attrNames

Primop
Docs pulled from | This Revision | about 13 hours ago

Takes 1 arguments

set


Return the names of the attributes in the set set in an alphabetically sorted list. For instance, builtins.attrNames { y = 1; x = "foo"; } evaluates to [ "x" "y" ].

This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.

Noogle detected

Aliases

Detected Type
attrNames :: AttrSet -> [String]

Implementation

This function is implemented in c++ and is part of the native nix runtime.