Acet-list-is-dotted-pair

提供:GizmoLabs - だいたい CAD LISP なサイト
2025年8月9日 (土) 21:57時点におけるGizmon (トーク | 投稿記録)による版 (ページの作成:「{{AutoLISP}} ; 構文 : (acet-list-is-dotted-pair ''item'' ) ; 機能 : item が真のドットペアリストであるかどうかを返す。 ; 引数 :* item … 評価するリスト ; 戻り値 : item が真のドットペアリストであれば T、そうでなければ NIL を返す。 ; サンプル <pre class="brush:autolisp;"> (setq lst '(1 . 5)) (acet-list-is-dotted-pair lst ) T (setq lst '(1 5)) (acet-list-is-dotted-pair lst ) nil (setq lst…」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
構文
(acet-list-is-dotted-pair item )


機能
item が真のドットペアリストであるかどうかを返す。


引数
  • item … 評価するリスト


戻り値
item が真のドットペアリストであれば T、そうでなければ NIL を返す。


サンプル
(setq lst '(1 . 5))
(acet-list-is-dotted-pair lst )
T

(setq lst '(1 5))
(acet-list-is-dotted-pair lst )
nil

(setq lst (list '(1 2 5) '(2 1 4) '(3 4 3) '(4 3 2) '(5 5 1)))
(acet-list-is-dotted-pair lst )
nil

(setq lst (cons '(1 2 5) '(2 1 4)) ))
((1 2 5) 2 1 4)
(acet-list-is-dotted-pair lst )
nil

関連事項