Re: Probably easy lisp question

"Edward O'Connor" <[email protected]> Fri, 09 May 2003 11:00:10 -0500
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
> I want to convert a number into a string.
>  
> (defun makestrvar (x)
>  .....
> )
>  
> should evalutate to
>  
> (makestrvar 3) -> "var3"
> (makestrvar 1000) -> "var1000"

Have you tried using FORMAT? (format t "var~d" x) should do what you
want.


HTH.
Ted

-- 
Edward O'Connor
[email protected]

Ense petit placidam sub libertate quietem.

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/