nameValuePair
lib.nameValuePair
Docs pulled from | This Revision | 17 minutes 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; }