removeAttrs
lib.removeAttrs
Primop
Docs pulled from | This Revision | 10 minutes 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; }
.
Noogle detected
Detected Type
removeAttrs :: AttrSet -> [String] -> AttrSet
Implementation
This function is implemented in c++ and is part of the native nix runtime.