~swisschili/bluejay

ref: 6d02af472f6ce87ea50ff24aa77f88928dbf31bc bluejay/src/lisp/test-args.lisp -rw-r--r-- 215 bytes
6d02af47swissChili Add detailed error reporting, remove panics 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
; (load "../../lib/lisp/std/std.lisp")

(defun with-optional (required (optional 3))
  (+ required optional))

(defun takes-varargs (& rest)
  (print rest))

(defun main ()
  (print "hi")
  (takes-varargs 1 2 3 4))