forked from lix-project/lix
doc: builtins.attrNames returns alphabetically sorted list
This commit is contained in:
parent
03ae5e6459
commit
82a9c93c7f
|
@ -65,7 +65,7 @@ available as <function>builtins.derivation</function>.</para>
|
||||||
<replaceable>set</replaceable></term>
|
<replaceable>set</replaceable></term>
|
||||||
|
|
||||||
<listitem><para>Return the names of the attributes in the set
|
<listitem><para>Return the names of the attributes in the set
|
||||||
<replaceable>set</replaceable> in a sorted list. For instance,
|
<replaceable>set</replaceable> in alphabetically sorted list. For instance,
|
||||||
<literal>builtins.attrNames { y = 1; x = "foo"; }</literal>
|
<literal>builtins.attrNames { y = 1; x = "foo"; }</literal>
|
||||||
evaluates to <literal>[ "x" "y" ]</literal>.</para></listitem>
|
evaluates to <literal>[ "x" "y" ]</literal>.</para></listitem>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue