From: Vandana Verma
Subject: convert function to string
Date: 
Message-ID: <4b4qmd$n8i@paladin.american.edu>
I need to convert a lisp function to a string. 
Is there an easy way to do this.
What I have (foo x y z)
What I want "(foo x y z)"

-Vandana
From: Stefan K. Bamberger
Subject: Re: convert function to string
Date: 
Message-ID: <bambi-1912951043120001@wi6a66.informatik.uni-wuerzburg.de>
In article <··········@paladin.american.edu>,
·······@email.cas.american.edu (Vandana Verma) wrote:

> I need to convert a lisp function to a string. 
> Is there an easy way to do this.
> What I have (foo x y z)
> What I want "(foo x y z)"
> 

(format nil "~a" '(foo a b))

IF you use keywords in the argument list use ~s in stead of ~a

- stefan
_____________________________________________________________________
***  Support bacteria -- it's the only culture some people have! ****
_____________________________________________________________________
Stefan K. Bamberger          email: ·····@informatik.uni-wuerzburg.de
Lehrstuhl f"ur Informatik VI                 voice : ++49 931 7056114
Universit"at W"urzburg / Germany               Fax : ++49 931 7056120
_____________________________________________________________________