query
On this page

nameValuePair

lib.nameValuePair

Docs pulled from | This Revision | 31 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; }
(lib.attrsets.nameValuePair)

Noogle also knows

Aliases