Package: alexandria

Function ensure-symbol

Lambda List

ensure-symbol (name &optional package)

Details

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.

Examples

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