There are 9 utilities.
- same-name v1.0
-
Do symbols
a
andb
have the same name?- Provides
same-name
- ensure-keyword v1.0
-
Ensure that a keyword is returned for the string designator
x
.- Provides
ensure-keyword
- symb v1.0
-
Receives any number of objects, concatenates all into one string with
#'mkstr
and converts them to symbol.Extracted from On Lisp, chapter 4.
See also:
symbolicate
- Provides
symb
- Requires
- mkstr
- ensure-symbol v1.0
-
Returns a symbol with name designated by
name
, accessible in package designated bypackage
. If symbol is not already accessible inpackage
, it is interned there. Returns a secondary value reflecting the status of the symbol in the package, which matches the secondary return value ofintern
.Example:
(ensure-symbol :cons :cl) => cl:cons, :external
- Provides
ensure-symbol
- format-symbol v1.0
-
Constructs a string by applying
arguments
to string designatorcontrol
as if byformat
withinwith-standard-io-syntax
, and then creates a symbol named by that string.If
package
isnil
, returns an uninterned symbol, if package ist
, returns a symbol interned in the current package, and otherwise returns a symbol interned in the package designated bypackage
.- Provides
format-symbol
- make-keyword v1.0
-
Interns the string designated by
name
in thekeyword
package.- Provides
make-keyword
- make-gensym v1.0
-
If
name
is a non-negative integer, callsgensym
using it. Otherwisename
must be a string designator, in which case callsgensym
using the designated string as the argument.- Provides
make-gensym
- make-gensym-list v1.0
-
Returns a list of
length
gensyms, each generated as if with a call tomake-gensym
, using the second (optional, defaulting to"G"
) argument.- Provides
make-gensym-list
- symbolicate v1.0
-
Concatenate together the names of some strings and symbols, producing a symbol in the current package.
- Provides
symbolicate