lisp
Maximizing / restoring a window in emacs
Ok, so maybe this is more a question for the superuser site but I figured there\'d be a hell of a lot more emacs users on stackoverflow.[详细]
2023-04-10 16:07 分类:问答Recursing in a lambda function
I have the following 2 functions that I wish to combine into one: (defun fib (n) (if (= n 0) 0 (fib-r n 0 1)))[详细]
2023-04-09 19:30 分类:问答Looking for references describing tail recursion optimization through exceptions
I have implemented a small lisp interpretor (sapid lisp at google code) in python and sapid lisp itself. Perhaps its main characteristic is to implement tail and mutual recursion optimization through[详细]
2023-04-08 16:36 分类:问答Scheme function that sum number u and list x u+x1+x2
Im new to Scheme and trying to make function that is (in f u x), u is integer, x is a list and f binary function. The scheme expression (in + 3 \'(1 2 3)) should return 3+1+2+3=9.[详细]
2023-04-08 16:35 分类:问答Common lisp, undefined intersection function behaviour?
According to CLHS entry for the INTERSECTION function (http://www.lispworks.com/documentation/HyperSpec/Body/f_isec_.htm):[详细]
2023-04-08 05:52 分类:问答Not sure what this line does
(or (parse-integer (prompt-read \"Rating\") :junk-allowed t) 0) This line confuses me quite a bit. the full program is here if you need it to follow: http://paste.lisp.org/display/124929[详细]
2023-04-08 04:53 分类:问答slimv segfaulting on OS X Lion
I have been trying to get slimv (http://www.vim.org/scripts/script.php?script_id=2531) working for a while now, but I am really not sure what else I can do.[详细]
2023-04-07 13:52 分类:问答Proper way to program in Lisp?
I\'m new to Common Lisp, and found myself taking advantage of way functions returns values. The following are to two trivial examples:[详细]
2023-04-06 22:57 分类:问答How can i use "loop for" in this situation?
The following code will raise: SYSTEM::%E开发者_运维问答XPAND-FORM: (SETQ NUM (SUBSTRING LINE 6)) should be a lambda expression.[详细]
2023-04-06 20:10 分类:问答What's the best way to sort a hashtable by value?
Now i have to copy the hastable to a list before sorting it: (defun good-red () (let ((tab (make-hash-table)) (res \'()))[详细]
2023-04-06 19:02 分类:问答