Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Common Lisp macro question

Name: Anonymous 2011-08-24 19:59

Hey guys, I'm really new to Lisp. Say I have a macro with the following arguments:

(defmacro m (&rest args)
  ...)


How would I get the n'th item in args? elt doesn't work, of course.

Thanks.

Name: Anonymous 2011-08-24 20:00

Well, maybe you should read your SICP.

Name: Anonymous 2011-08-24 20:10

Please ignore this thread, I found the problem and I am a massive idiot.

Name: Anonymous 2011-08-24 20:48

Use multiclassing and multifunctors with closures, it's obviously a problem with multiple ramifications.

Name: Anonymous 2011-08-24 22:19

>>3
It is customary to post the solution for future people who may stumble on this thread when they Google for answers!

Name: Anonymous 2011-08-24 22:55

>>5
Nah, it's better if they shamelessly bump this thread five years from now.

Name: Anonymous 2011-08-25 0:38

(nth args)

/thread

Don't change these.
Name: Email:
Entire Thread Thread List