Edward Faulkner
12/15/2005 10:38:00 PM
On Fri, Dec 16, 2005 at 07:22:39AM +0900, Mark J.Reed wrote:
> Douglas Livingstone wrote:
> > Just a quick one, how do you translate this:
> >
> > ((if (zero? 0) + -) 3 4)
>
> What dialect of LISP is that? Not Common... CL has no "zero?"
It's Scheme. A much nicer dialect than CL, IMHO. ;-)
I think in CL the equivalent would be:
((if (zerop 0) #'+ #'-) 3 4)
Note the ugly sharp-quotes, due to the fact that CL has separate
namespaces for values and functions.
regards,
Ed