commit | 15f1caee9d71a13069ce1cfa652e4767b1c4c189 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Mon Jul 05 19:08:47 2021 -0700 |
committer | swissChili <swisschili@fastmail.com> | Mon Jul 05 19:08:47 2021 -0700 |
tree | 9aa5fa1229827f3045061916b7757c59816edafb | |
parent | f68671fddd9b9a581f9ec0195e2c2ed81f81ed55 [diff] [blame] |
Add optional, variadic arguments
diff --git a/src/lisp/test-args.lisp b/src/lisp/test-args.lisp new file mode 100644 index 0000000..14364a8 --- /dev/null +++ b/src/lisp/test-args.lisp
@@ -0,0 +1,7 @@ +(defun with-optional (required (optional 3)) + (+ required optional)) + +(defun main () + (when t + (print (with-optional 2)) + (print (with-optional 2 4))))