self-referential sentences

This commit is contained in:
mehbark 2024-12-18 19:05:37 -05:00
parent 765c4ecacc
commit cc5f486df6

10
meta-sentences.lisp Normal file
View file

@ -0,0 +1,10 @@
(load "utils.lisp")
(defun main ()
(loop with seen
with fmt = (read-line)
for len = 10 then (length sentence)
for sentence = (format nil fmt len)
until (member len seen)
do (nunionf seen (list len))
do (format t "~3d ~a~%" (length sentence) sentence)))