* (defun maxnum(x y) (if (> x y) x y)) STYLE-WARNING: redefining COMMON-LISP-USER::MAXNUM in DEFUN MAXNUM * (maxnum 9 8) 9 * (maxnum 8 9) 9 * (maxnum 112 990) 990
使用了progn,progn将其它语句 插入到某语句中 ,即只返回最后一个语句的执行结果
* (minofnums *mylist*) -263 * (maxofnums *mylist*) 126 *
下面是代码
[deep@deep ~]$ sbcl --load /home/deep/pro/test2.lisp
(defvar *mylist* `(23 126 29 -23 23 2 44 -23 0 -263) ) (defvar *mymax* (car *mylist*)) (defvar *mymin* (car *mylist*)) (defun maxofnums(mlist) (if mlist (progn (setf *mymax* (if (> *mymax* (car mlist)) *mymax* (car mlist))) (maxofnums (cdr mlist))) *mymax* ) ) (defun minofnums(mlist) (if mlist (progn (setf *mymin* (if (< *mymin* (car mlist)) *mymin* (car mlist))) (minofnums (cdr mlist))) *mymin* ) )
相关推荐
emacs-lisp-intro emacs-lisp-intro
AutoLisp-教程word版教程.rar
Common-Lisp-Actors, 通用Lisp的actor系统 这是一个简单且易于使用的Actor系统,在。设置需要波尔多螺纹。http://common-lisp.net/project/bordeaux-threads/ 2. 加载 actors.lisp 并开始使用它。 如果你有 Quick
common-lisp-the-language-second-edition.PDF
Practical Common Lisp-1st-2005,官方排版,我为大部分章节加了二级书签
Arduino-lisp-badge.zip,一种用lisp编程的手持式计算机,带有独立的键盘和显示器。lisp徽章,Arduino是一家开源软硬件公司和制造商社区。Arduino始于21世纪初,深受电子制造商的欢迎,Arduino通过开源系统提供了很多...
该文件描述了本地计算机上common-lisp-jupyter的安装和使用,但是您可以通过单击上面的Binder徽章来试用common-lisp-jupyter而不安装任何东西。动机在开发Maxima-Jupyter时,cl-jupyter不支持许多增强功能。 由于...
Autocad的课件——AutoLISP-Visual-LISP教程.ppt
Lisp-flavoured C
cad-lisp-3-表操作.LSP.lsp
lisp--lisp-- 一个可以跑sicp解释器的lisp--。
On LISP Advanced Techniques for Common LISP - Paul Graham.pdf
The Elements of Artificial Intelligence Using Lisp - Steven L. Tanimoto.pdf The Elements of Artificial Intelligence Using Lisp - Steven L. Tanimoto.pdf
轻描淡写地介绍Lisp,不需要算术就可以拥有任何数学背景。
通过交互式计算机终端进行实验,以学习编程语言Lisp(LISt处理语言)的Common Lisp方言。
AutoLISP-应用程序源代码.pdf
Provides an overview of Common Lisp for the working programmer. Introduces key concepts in an easy-to-read format. Describes format, typical use, and possible drawbacks of all important Lisp ...
emacs lisp,emacs lispemacs lispemacs lispemacs lispemacs lispemacs lispemacs lispemacs lispemacs lispemacs lisp
CAD批量打印程序,lisp编辑,可以直接进行CAD图形的批量打印,效果不错
资源分类:Python库 所属语言:Python 资源全名:slims-lisp-0.0.5.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059