Is there an advantage to defining a function like (defun hi () \"Hi!\") and be able to call it by using (hi) or (HI) or (Hi), or to (setf a-number 5) and be able to access that number using a-number,
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
I am doing Exercise 14.11 in \"A Gentle Introduction to Symbolic Computation,\" and wrote the following function:
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:
I\'ve written the following bit of code to 开发者_如何学JAVAsimulate rolling a six-sided die a number of times and counting how many times each side landed up:
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
This is a recent error that I can\'t find any documentation for. It might not be cl-smtp specific, but it occurs each time I attempt to evaluate
I\'ve looked through On Lisp, Practical Common Lisp and the SO archives in order to answer this on my own, but those attempts were frustrated by my inability to name the concept I\'m interested in.I w
In a Lisp interpreter, there can easily be a branch in eval that can expand a macro, and in the process of expanding it, call functions to build up the expanded expression. I\'ve done this before usin
In Common-Lisp CLOS Is it possible to dynamically add one more super 开发者_JS百科class in existing class.