In xlisp I can combine single character strings in the following
manner:
(strcat "a" "b" "c")
to get "abc"
Is there a like function in Sun Common Lisp?
Thanks,
Tom
········@altair.selu.edu wrote:
: In xlisp I can combine single character strings in the following
: manner:
: (strcat "a" "b" "c")
: to get "abc"
: Is there a like function in Sun Common Lisp?
: Thanks,
: Tom
The more general function #'concatenate will work:
> (concatenate 'string "a" "b" "c")
"abc"
--Misha
-----------------------------------------------------------------------------+
Michael Tselman (Misha) Internet: ·····@ccs.neu.edu | Imagination is |
College of Computer Science, Northeastern University | more important |
23 Cullinane Hall, 360 Huntington Ave., Boston, MA 02115| than knowledge!|
Phone: (617)-373-3822, Fax: (617)-373-5121 | |
WWW: http://www.ccs.neu.edu/home/misha | (A. Einstein) |
-----------------------------------------------------------------------------+
In article <····················@altair.selu.edu>,
········@altair.selu.edu wrote:
> In xlisp I can combine single character strings in the following
> manner:
>
> (strcat "a" "b" "c")
>
> to get "abc"
>
> Is there a like function in Sun Common Lisp?
>
> Thanks,
>
> Tom
Hi, I wrote you yesterday with the wrong definition of strcat. It should be:
(defun strcat (&rest strings)
(apply 'concatenate 'string strings))
--
Will Fitzgerald
Intell/Agent Systems
············@nwu.edu