lisp set 操作示例代码

代码语言:lisp

所属分类:其他

代码描述:lisp set 操作示例代码

代码标签: set 示例

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

; creating myset as an empty list
(defparameter *myset* ())
(adjoin 1 *myset*)
(adjoin 2 *myset*)

; adjoin did not change the original set
;so it remains same
(write *myset*)
(terpri)
(setf *myset* (adjoin 1 *myset*))
(setf *myset* (adjoi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0