Is there a function in Common Lisp that takes a string as an argument and returns a keyword?
Example: (keyword \"foo\") -> :foo
(keyword \"foo\")
:foo
Here's a make-keyword function which packages up keyword creation process (interning of a name into the KEYWORD package). :-)
make-keyword
intern
KEYWORD
(defun make-keyword (name) (values (intern name "KEYWORD")))