 - (defun c:tt ()
- (setq all (list "aa11" "aa22" "bb11" "bb22" "cc" "dd" "ee" "ff" "gg"
- "hh" "ii")
- )
- (setq key (list "aa" "bb" "kk"))
- (setq all-app ())
- (setq app ())
- (foreach n key
- (mapcar '(lambda (x)
- (if (vl-string-search n x)
- (setq app (cons x app))
- )
- )
- all
- )
- (if app
- (setq all-app (append all-app (list (reverse app))))
- )
- (setq app ())
- )
- all-app
- ) ;;(("aa11" "aa22") ("bb11" "bb22"))
|