lisp list操作示例代码
代码语言:lisp
代码描述:lisp list操作示例代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
#!/usr/local/bin/sbcl --script (write (list 1 2)) (terpri) (write (list 'a 'b)) (terpri) (write (list 1 nil)) (terpri) (write (list 1 2 3)) (terpri) (write (list 'a 'b 'c)) (terpri) (write (list 3 4 'a (car '(b . c)) (* 4 -2))) (terpri) (write (list (list 'a 'b) (list 'c 'd 'e))) (write (cadadr '(a (c d) (e f g)))) (terpri) (write (caar (list (list 'a '.........完整代码请登录后点击上方下载按钮下载查看
网友评论0