self-referential sentences
This commit is contained in:
parent
765c4ecacc
commit
cc5f486df6
1 changed files with 10 additions and 0 deletions
10
meta-sentences.lisp
Normal file
10
meta-sentences.lisp
Normal 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)))
|
Loading…
Reference in a new issue