X-Git-Url: https://git.distorted.org.uk/~mdw/lisp/blobdiff_plain/0eed4749891adf0a7be89e786b8968ee805a8d41..77f935dafbb63f1674a3df832972fda67c10e3d6:/mdw-base.lisp?ds=sidebyside diff --git a/mdw-base.lisp b/mdw-base.lisp index 2bad2c2..774ea9f 100644 --- a/mdw-base.lisp +++ b/mdw-base.lisp @@ -1,7 +1,5 @@ ;;; -*-lisp-*- ;;; -;;; $Id$ -;;; ;;; Basic definitions ;;; ;;; (c) 2005 Mark Wooding @@ -193,6 +191,15 @@ ;;;-------------------------------------------------------------------------- ;;; Generating symbols. +(export 'symbolicate) +(defun symbolicate (&rest names) + "Return a symbol constructued by concatenating the NAMES. + + The NAMES are coerced to strings, using the `string' function, so they may + be strings, characters, or symbols. The resulting symbol is interned in + the current `*package*'." + (intern (apply #'concatenate 'string (mapcar #'string names)))) + (export 'with-gensyms) (defmacro with-gensyms (syms &body body) "Everyone's favourite macro helper."