< Opposition Research
Next >

Sure, Do It The Easy Way: I remember in some class in college (the first one of the three I took where they teach you Lisp) I had a Lisp problem where I had to figure out how to pass in two numbers to a function of one argument.

Well, I thought, I'll encode the numbers x,y as a product of powers of primes 2x*3y, just like you would to encode a formula into Gödel numbering. Then I'll have one number that, by the Fundamental Theorem of Arithmetic, uniquely represents some list of numbers. On the other side I'll "just" decode the list from that number.

Then I figured out that the real answer was to put the numbers in a list and pass in the list.

Filed under: ,

[Main] [Edit]

Unless otherwise noted, all content licensed by Leonard Richardson
under a Creative Commons License.