Re: how to concatenate symbols
- From: Harald Hanche-Olsen <hanche@xxxxxxxxxxxx>
- Date: Sun, 04 Feb 2007 14:13:44 +0100
+ "cadence" <jimka@xxxxxxxxx>:
| Here is my attempt. Is there an better way?
|
| (defun concat (list)
| (intern (apply 'concatenate 'string (mapcar 'symbol-name list))
| (find-package :keyword)))
No need for find-package. :keyword on its own is a valid package
designator (see also Pascal Costanza's solution).
--
* Harald Hanche-Olsen <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
when there is no ground whatsoever for supposing it is true.
-- Bertrand Russell
.
- Follow-Ups:
- [OT] Another one for the risk file...
- From: Ken Tilton
- [OT] Another one for the risk file...
- References:
- how to concatenate symbols
- From: cadence
- Re: how to concatenate symbols
- From: cadence
- how to concatenate symbols
- Prev by Date: Re: how to concatenate symbols
- Next by Date: [OT] Another one for the risk file...
- Previous by thread: Re: how to concatenate symbols
- Next by thread: [OT] Another one for the risk file...
- Index(es):