Add mksymb, mkkw.

This commit is contained in:
Kyle 2015-04-10 01:09:26 -07:00
parent a1622048d0
commit 1330c456ee
2 changed files with 15 additions and 1 deletions

View File

@ -41,6 +41,19 @@ additional args provided to the lambda."
(return))))
new-form))
(defun mksymb (&rest args)
"Create a symbol from arguments, upcasing strings as required."
(let ((args (mapcar (lambda (arg)
(if (stringp arg)
(string-upcase arg)
arg))
args)))
(apply #'symb args)))
(defun mkkw (&rest args)
"Create a keyword from its arguments."
(intern (string (apply #'mksymb args)) "KEYWORD"))
;;; hash-table functions.

View File

@ -12,7 +12,8 @@
#:build-list
#:partial
#:macroexpand-n
#:count-macroexpansions
#:mksymb
#:mkkw
#:enable-hash-table-reader
#:hashkeys
#:sethash