nameValuePair
lib.attrsets.nameValuePair
Docs pulled from | This Revision | 4 days ago
Utility function that creates a {name, value} pair as expected by builtins.listToAttrs.
Inputs
- name
- 
Attribute name 
- value
- 
Attribute value 
Type
nameValuePair :: String -> Any -> { name :: String; value :: Any; }
Examples
lib.attrsets.nameValuePair usage example
nameValuePair "some" 6
=> { name = "some"; value = 6; }
Noogle detected
Implementation
The following is the current implementation of this function.
nameValuePair = name: value: { inherit name value; };