(defun ufile-pathname (ufile &optional (extension ""))
"Return pathname for a umls filename with an optional extension"
(assert (typep ufile 'ufile))
- (let* ((dirs (append (list (dir ufile))
- (awhen (subdir ufile) (list it))))
+ (let* ((dirs (nconc (list (dir ufile))
+ (awhen (subdir ufile) (list it))))
(name-list (delimited-string-to-list (fil ufile) #\.))
(name (if (second name-list)
(first name-list)
only-exact-if-match limit &key extra-lookup-args)
(let ((uobjs '()))
(dolist (word (delimited-string-to-list str #\space))
- (setq uobjs (append uobjs
- (kmrcl:flatten (apply obj-lookup-fun word :srl srl extra-lookup-args)))))
+ (setq uobjs (nconc uobjs
+ (kmrcl:flatten (apply obj-lookup-fun word :srl srl extra-lookup-args)))))
(let ((sorted
(funcall sort-fun str
(delete-duplicates uobjs :test #'= :key key))))