query
On this page

showAttrPath

lib.showAttrPath

Docs pulled from | This Revision | about 16 hours ago


Turns a list of strings into a human-readable description of those strings represented as an attribute path. The result of this function is not intended to be machine-readable. Create a new attribute set with value set at the nested attribute location specified in attrPath.

Inputs

path

Attribute path to render to a string

Type

showAttrPath :: [String] -> String

Examples

lib.attrsets.showAttrPath usage example

showAttrPath [ "foo" "10" "bar" ]
=> "foo.\"10\".bar"
showAttrPath []
=> "<root attribute path>"
(lib.attrsets.showAttrPath)

Noogle also knows

Aliases