[功能] 连接成字符串
本帖最后由 自贡黄明儒 于 2014-3-20 09:28 编辑;;[功能] 连接成字符串
(defun HH::strcat (Lst)
(VL-CATCH-ALL-APPLY 'strcat (mapcar 'VL-PRINC-TO-STRING Lst))
)
;;(HH::strcat(list "a" 20.2 "B"))=>"a20.2B" 黄兄 这个跟直接 strcat 的区别是什么? 字符N多 数字只有几个的时候 效率较低 黄大师出品,支持下!
(VL-CATCH-ALL-APPLY (strcat (mapcar (VL-PRINC-TO-STRING Lst))))
(VL-CATCH-ALL-APPLY 'strcat (mapcar 'VL-PRINC-TO-STRING Lst))
这连个的区别是什么?“'”号的作用是? :handshake
页:
[1]