From ... Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!npeer.kpnqwest.net!nreader1.kpnqwest.net.POSTED!not-for-mail Newsgroups: comp.lang.lisp Subject: Re: How can I implement a function inside of a list? References: <240720011009588191%sungwoo@cad.strath.ac.uk> <87k80ywsu3.fsf@ivory.localhost> <240720011122531720%sungwoo@cad.strath.ac.uk> Mail-Copies-To: never From: Erik Naggum Message-ID: <3204964907881721@naggum.net> Organization: Naggum Software, Oslo, Norway Lines: 29 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 24 Jul 2001 12:01:50 GMT X-Complaints-To: newsmaster@Norway.EU.net X-Trace: nreader1.kpnqwest.net 995976110 193.71.66.49 (Tue, 24 Jul 2001 14:01:50 MET DST) NNTP-Posting-Date: Tue, 24 Jul 2001 14:01:50 MET DST Xref: archiver1.google.com comp.lang.lisp:13469 * Sungwoo Lim > I got a label list of a cube by some calculations as below, > > ((a Y b c d) (b W g e a) (c W e f a) (d W f g a) (e L c b) (f L d c) (g > L b d)) > > and wanted put into the (defdiagram shape) like the above example. > But (apply #'funcall) doesn't works for this case... This is the closest to what the Lisp environment will do if you type it in like you seem to want to do: (eval (list* 'defdiagram 'cube )) You will hear a lot of whining from people who think eval is evil. Ignore them for now. However, the macro is actually pretty well-behaved, so you can easily do (put-diagrem 'cube (construct-diagram (check-diagram ))) which should produce the desired results. #:Erik -- There is nothing in this message that under normal circumstances should cause Barry Margolin to announce his moral superiority over others, but one never knows how he needs to behave to maintain his belief in it.