;表中元素全部转化为字符
;(list2string '(("a" 1) ("b" 2) ("多层表" ("d" 56 ("e" 5 ("f" 56)))) 3 2 "中文" ("English")))
;=>(("a" "1") ("b" "2") ("多层表" ("d" "56" ("e" "5" ("f" "56")))) "3" "2" "中文" ("English"))- (defun list2string (lst)
- (mapcar
- '(lambda (x)
- (if (listp x)
- (list2string x)
- (vl-princ-to-string x)
- )
- )
- lst
- )
- )
|