<D <M <Y
Y> M> D>

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.

[Comments] (2) : A reliable source informs me that LinuxWorld is in town this week. Is anyone I know in town and interested in hanging out? Do people still go to LinuxWorld nowadays?


[Main]

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