「Vle-remove-last」の版間の差分
 (ページの作成:「{{AutoLISP}} ; 構文 : (vle-remove-last ''lst'')    ; 機能 : リスト 'lst'から最後の項目を削除したリストを返す : (reverse (cdr (reverse lst))) と...」)  | 
				編集の要約なし  | 
				||
| 1行目: | 1行目: | ||
{{  | {{BCAD_LISP}}  | ||
; 構文  | ; 構文  | ||
: (vle-remove-last ''lst'')    | : (vle-remove-last ''lst'')    | ||
| 39行目: | 39行目: | ||
[[Category:AutoLISP]]  | [[Category:AutoLISP]]  | ||
[[Category:BricsCADのLISP]]  | |||
2023年1月28日 (土) 07:50時点における最新版
- 構文
 - (vle-remove-last lst)
 
- 機能
 - リスト 'lst'から最後の項目を削除したリストを返す
 - (reverse (cdr (reverse lst))) と同じだが高パフォーマンス
 
- 引数
 - 
- lst : リスト
 
 
- 戻り値
 - 最後の項目が削除されたリスト。
 
- サンプル
 
<syntaxhighlight lang="lisp" line> (vle-remove-last '(1 2 3 4 5 6 7 8 9 0)) (1 2 3 4 5 6 7 8 9)
(vle-remove-last '(1)) nil
</syntaxhighlight>
関連事項