只需一步,快速开始
(defun str2lst (str / n) (setq str (vl-string-trim " " str)) (setq n (vl-string-search " " str)) (if (= str "") nil (cons (substr str 1 n) (if n (str2lst (substr str (+ n 1)))) ) ) ) (defun str2lst (str / n) (setq str (vl-string-trim " " str)) (setq n (vl-string-search " " str)) (if (= str "") nil (cons (substr str 1 n) (if n (str2lst (substr str (+ n 1)))) ) ) )
查看全部评分
使用道具 举报
;; nth (defun ournth (n l) (if (null l) nil (if (zerop n) (car l) (ournth (- n 1) (cdr l)) ) ) ) ;; nth (defun ournth (n l) (if (null l) nil (if (zerop n) (car l) (ournth (- n 1) (cdr l)) ) ) )
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2024-11-22 15:39 , Processed in 0.215334 second(s), 30 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.