query
On this page

removeAttrs

builtins.removeAttrs

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

Takes 2 arguments

set, list


Remove the attributes listed in list from set. The attributes don’t have to exist in set. For instance,

removeAttrs { x = 1; y = 2; z = 3; } [ "a" "x" "z" ]

evaluates to { y = 2; }.

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
removeAttrs :: AttrSet -> [String] -> AttrSet

Implementation

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