Add mksymb, mkkw.
This commit is contained in:
parent
a1622048d0
commit
1330c456ee
13
kutils.lisp
13
kutils.lisp
|
@ -41,6 +41,19 @@ additional args provided to the lambda."
|
||||||
(return))))
|
(return))))
|
||||||
new-form))
|
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.
|
;;; hash-table functions.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
#:build-list
|
#:build-list
|
||||||
#:partial
|
#:partial
|
||||||
#:macroexpand-n
|
#:macroexpand-n
|
||||||
#:count-macroexpansions
|
#:mksymb
|
||||||
|
#:mkkw
|
||||||
#:enable-hash-table-reader
|
#:enable-hash-table-reader
|
||||||
#:hashkeys
|
#:hashkeys
|
||||||
#:sethash
|
#:sethash
|
||||||
|
|
Loading…
Reference in New Issue