jak-project/goal_src/test/test-sort-3.gc
water111 27b865c0df
Add methods and pointers (#53)
* method calls and sorting

* add more tests and fix some alias stuff
2020-09-19 16:50:42 -04:00

12 lines
304 B
Common Lisp

(defmacro blist (&rest args)
(if (null? args)
(quote '())
`(cons (ash ,(car args) 3) (blist ,@(cdr args)))
)
)
(let ((my-list (blist 24 16 32 56 72 1234 -34 25 654)))
(format #t "~A~%" my-list)
(sort my-list (lambda ((x int) (y int)) (< x y)))
(format #t "~A~%" my-list)
)