这个 Lisp 函数有什么问题?
该函数是一个 CLisp 函数,这是家庭作业问题的一部分,但应该以这种不同的格式编写(第二个函数)。 (defun range (m M) (cond ((> m M) '() ) ((= m …
如何使用 lisp (clisp) 制作和使用库?
在 C/C++ 中,我可以创建一个库,并在源代码中使用 #include "" 使其成为静态库或 dll,并在链接时使用 -labc。 我如何在 Lisp 中拥有相同的功能? 以…
乘法后 CLISP 溢出
让第一个 lisp 程序使用 CLISP 实现来工作 (print (mod (+ (* 28433 (expt 2 7830457) 1)) (expt 10 10)))) 我正在尝试通过输入REPL 来 。但它给了我*…
使用 gnu clisp 运行 shell 命令
我正在尝试为 clisp 创建一个像这样工作的“系统”命令 (setq result (system "pwd")) ;;now result is equal to /my/path/here 我有这样的东西: (de…
Common Lisp 可以做什么?
Closed. This question is opinion-based. It is not currently accepting answers. 想要改进这个问题?更新问题,以便可以通过编辑这篇文章用事实和…
帮助编写二叉树的 Lisp 代码
我有 (setq l2 '(1 (2 b (c 1 b))(a (1 2) d))) (defun drumuri (l3) (cond ((atom l3) (cons l3 nil)) (t (append (cons (car l3) nil) (drumuri (ca…
阿帕奇+ mod_lisp + 剪辑
如何配置 apache + mod_lisp + clisp 并设置“Hello World!”? 我找不到有关该主题的任何完整指南。 谢谢。 编辑:Vebjorn 的解决方案有效,但我不知…
clisp运行错误--ANSI Common Lisp 课后习题5.5
这是ANSI Common Lisp第5章第5个练习题。题目原文为: Define iterative and recursive versions of a function that takes an object x and vector v…