lisp
Scheme: change value of an element in a list
I hate using SO as a way to find simple functions, but I really can\'t find a function like this anywhere:开发者_如何学JAVA[详细]
2023-04-04 16:52 分类:问答Lisp: How to override default string representation for CLOS class?
In Common Lisp, how can I override the default s开发者_如何学运维tring representation of a CLOS class so that calls to format or princ will print something intelligible, even when objects of that clas[详细]
2023-04-04 16:52 分类:问答Are variable and symbol different in Lisp?
numberp is a predicate in Lisp, and (numberp 1) 开发者_如何学JAVAreturns T as expected. But if I only type numberp in the console, it prompts that the variable name is undefined.[详细]
2023-04-04 09:56 分类:问答How to understand the parameter binding in macro definition in Lisp?
As shown in the below Lisp code, (defvar a 1) (defvar b 2) (defmacro macro-add (c d) `(开发者_运维技巧+ ,c ,d))[详细]
2023-04-04 05:22 分类:问答Problems with Nth in common lisp
I\'m trying to write a function that can calculate GPA. Now I can do limited calculation(only 3 ),but I stuck on how to calculate more , without using loop or recursion (that\'s the requirement of sub[详细]
2023-04-03 21:10 分类:问答"is not of type LIST" error
I am doing Exercise 14.11 in \"A Gentle Introduction to Symbolic Computation,\" and wrote the following function:[详细]
2023-04-03 20:41 分类:问答Make an arbitrary function safe to run?
I\'m writing the docs of my program online, in a wiki, and my intent is to rip that content from the program itself, either from time to time or on demand.[详细]
2023-04-03 11:06 分类:问答Clojure Method Missing
Does anybody know how to implement method_missing (à la Ruby) in Clojure? E.g. (defn method_missing [name &开发者_运维问答 args][详细]
2023-04-02 11:08 分类:问答Navigating top-level Lisp/Clojure forms in Vim
I useVim for Clojure development. I\'d like a movement key or mapping that will jump through the top-level forms in th开发者_开发技巧e buffer. { and } are close, but stop if there\'s a blank line in t[详细]
2023-04-02 09:31 分类:问答Define n functions at once in Lisp
Suppose I want to do the following: (loop for i from 1 to n do (defun ith(lst) (nth i lst))) Apparently what I really want to do is the following:[详细]
2023-04-02 02:35 分类:问答