Hi,
I was wondering if there is a Common Lisp function that takes two (or more) input symbols to obtain an output symbol which is the concatenation of the inputs. I mean, something like:
(concatenate 'symbol 'a 'b) that would produce a new symbol ab (since "symbol" is not of type sequence, the concatenate function does not work in this case)
A possible solution would be to use (symbol-name ...) to transform the symbols into strings, concatenate them and then obtaining the final result by using (intern ...) but I think this can be quite inefficent. Is there a better way to do this?
Regards,
Luis.
I was wondering if there is a Common Lisp function that takes two (or more) input symbols to obtain an output symbol which is the concatenation of the inputs. I mean, something like:
(concatenate 'symbol 'a 'b) that would produce a new symbol ab (since "symbol" is not of type sequence, the concatenate function does not work in this case)
A possible solution would be to use (symbol-name ...) to transform the symbols into strings, concatenate them and then obtaining the final result by using (intern ...) but I think this can be quite inefficent. Is there a better way to do this?
Regards,
Luis.