X-Git-Url: https://git.distorted.org.uk/~mdw/lisp/blobdiff_plain/79ae1f5c8df5bfd2e4db967c82426e19763a400b..813da880d2d77f04ea623f426d543d298528f967:/mdw-base.lisp diff --git a/mdw-base.lisp b/mdw-base.lisp index 2bad2c2..aa14f27 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." @@ -335,7 +342,7 @@ forms)))) clauses))))) -(export 'caase2) +(export 'case2) (defmacro case2 (vform &body clauses) "VFORM is a form which evaluates to two values, SCRUTINEE and ARGUMENT. The CLAUSES have the form (CASES ([[SCRUVAR] ARGVAR]) FORMS...), where a