Quines
July 21st 2009Named after the American philosopher and logician W.V.O. Quine, a quine is a program whose only output is its own code. Here’s a neat example in Lisp/Scheme, taken from the Wikipedia article:
((lambda (x) (list x (list 'quote x))) '(lambda (x) (list x (list 'quote x))))