Nix (language): Difference between revisions

imported>Pdinges
m Fix minor typos.
imported>Caretcafe
mNo edit summary
Line 113: Line 113:
</syntaxHighlight>
</syntaxHighlight>
==== Default argument ====
==== Default argument ====
It is also possible to assign default values to be used in a function if the caller emits one, but only as part of a set.
It is also possible to assign default values to be used in a function if the caller omits one, but only as part of a set.


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>