infinisil changed the topic of #nix-lang to: Channel for discussing Nix as a language - https://nixos.org/nix/manual/#chap-writing-nix-expressions - Logs: https://logs.nix.samueldr.com/nix-lang/
__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]