Robin Schwartz


Quines

Published .

Tags: computer-science, language, math, old-dead-white-guys

Named 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 Scheme, taken from the Wikipedia article:

((lambda (x) (list x (list 'quote x)))
'(lambda (x) (list x (list 'quote x))))