Quickutilβ

Lisp utilities on demand

Fork me on GitHub
search

There are 9 utilities.

same-name v1.0

Do symbols a and b have the same name?

Provides
same-name
Source Code
 
ensure-keyword v1.0

Ensure that a keyword is returned for the string designator x.

Provides
ensure-keyword
Source Code
 
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
Source Code
 
ensure-symbol v1.0

Returns a symbol with name designated by name, accessible in package designated by package. If symbol is not already accessible in package, it is interned there. Returns a secondary value reflecting the status of the symbol in the package, which matches the secondary return value of intern.

Example:

(ensure-symbol :cons :cl) => cl:cons, :external

Provides
ensure-symbol
Source Code
 
format-symbol v1.0

Constructs a string by applying arguments to string designator control as if by format within with-standard-io-syntax, and then creates a symbol named by that string.

If package is nil, returns an uninterned symbol, if package is t, returns a symbol interned in the current package, and otherwise returns a symbol interned in the package designated by package.

Provides
format-symbol
Source Code
 
make-keyword v1.0

Interns the string designated by name in the keyword package.

Provides
make-keyword
Source Code
 
make-gensym v1.0

If name is a non-negative integer, calls gensym using it. Otherwise name must be a string designator, in which case calls gensym using the designated string as the argument.

Provides
make-gensym
Source Code
 
make-gensym-list v1.0

Returns a list of length gensyms, each generated as if with a call to make-gensym, using the second (optional, defaulting to "G") argument.

Provides
make-gensym-list
Source Code
 
symbolicate v1.0

Concatenate together the names of some strings and symbols, producing a symbol in the current package.

Provides
symbolicate
Source Code