__monty__ has joined #nix-lang
<
infinisil>
> builtins.functionArgs ({ }: 1)
<
infinisil>
> builtins.functionArgs ({ ... }: 1)
<
infinisil>
> builtins.functionArgs ({ x ? 1, ... }: 1)
<
{^_^}>
{ x = true; }
<
infinisil>
> builtins.functionArgs ({ x, ... }: 1)
<
{^_^}>
{ x = false; }
<
infinisil>
> builtins.functionArgs (x: 1)
<
infinisil>
> builtins.toXML (x: 1)
<
{^_^}>
"<?xml version='1.0' encoding='utf-8'?>\n<expr>\n <function>\n <varpat name=\"x\" />\n </function>\n</expr>\n"
<
infinisil>
> builtins.toXML ({}: 1)
<
{^_^}>
"<?xml version='1.0' encoding='utf-8'?>\n<expr>\n <function>\n <attrspat>\n </attrspat>\n </function>\n</expr>\n"
<
infinisil>
> builtins.toXML ({...}: 1)
<
{^_^}>
"<?xml version='1.0' encoding='utf-8'?>\n<expr>\n <function>\n <attrspat ellipsis=\"1\">\n </attrspat>\n </function>\n</expr>\n"
<
infinisil>
> builtins.toXML ({...}@x: 1)
<
{^_^}>
"<?xml version='1.0' encoding='utf-8'?>\n<expr>\n <function>\n <attrspat ellipsis=\"1\" name=\"x\">\n </attrspat>\n </function>\n</expr>\n"
<
infinisil>
> builtins.toXML (x@{...}: 1)
<
{^_^}>
"<?xml version='1.0' encoding='utf-8'?>\n<expr>\n <function>\n <attrspat ellipsis=\"1\" name=\"x\">\n </attrspat>\n </function>\n</expr>\n"
__monty__ has quit [Quit: leaving]