query
On this page

functionArgs

builtins.functionArgs

Primop
Docs pulled from | This Revision | 1 day ago

Takes 1 arguments

f


Return a set containing the names of the formal arguments expected by the function f. The value of each attribute is a Boolean denoting whether the corresponding argument has a default value. For instance, functionArgs ({ x, y ? 123}: ...) = { x = false; y = true; }.

"Formal argument" here refers to the attributes pattern-matched by the function. Plain lambdas are not included, e.g. functionArgs (x: ...) = { }.

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

Detected Type
functionArgs :: (a) -> AttrSet

Implementation

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