(defun find-ustr-cuisui (cuisui &key (srl *current-srl*))
"Return the single ustr for cuisui"
(collect-umlisp-query (mrconso (cui lui sui stt str suppress ksuilrl) srl kcuisui
- cuisui :lrl lsuilrl :single t)
+ cuisui :lrl ksuilrl :single t)
(make-instance 'ustr :sui sui :cui cui :cuisui cuisui
:lui (ensure-integer lui) :stt stt :str str :suppress suppress
:lrl (ensure-integer ksuilrl))))
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))))