Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,2 @@
(eval-when (:compile-toplevel :load-toplevel :execute)
(defun factorial ...))

View file

@ -0,0 +1,6 @@
(defmacro ct-factorial (n)
(factorial n))
...
(print (ct-factorial 10))

View file

@ -0,0 +1,6 @@
(defmacro ct-factorial (n)
`(quote ,(factorial n)))
; or, equivalently,
(defmacro ct-factorial (n)
`',(factorial n))

View file

@ -0,0 +1 @@
(print (load-time-value (factorial 10)))

View file

@ -0,0 +1 @@
(print (#. (factorial 10)))

View file

@ -0,0 +1,4 @@
(define-compiler-macro factorial (&whole form arg)
(if (constantp arg)
(factorial arg)
form))